mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-24 14:15:54 +00:00
Error if moving 64bit val to 32bit reg (#5088)
mov eax, 0x1122334455667788 now errors if trying to assemble with -b64.
This commit is contained in:
parent
24aec5be8c
commit
6e4a1b55b1
@ -1108,8 +1108,12 @@ SETNP/SETPO - Set if No Parity / Set if Parity Odd (386+)
|
||||
ptr = (ut8 *)&dst;
|
||||
if (dst > UT32_MAX) {
|
||||
if (a->bits == 64) {
|
||||
if (*arg == 'r')
|
||||
if (*arg == 'r') {
|
||||
data[l++] = 0x48;
|
||||
} else {
|
||||
eprintf ("Error: destination register is not 64 bit\n");
|
||||
return -1;
|
||||
}
|
||||
data[1] = 0xb8 | getreg (arg);
|
||||
data[2] = ptr[0];
|
||||
data[3] = ptr[1];
|
||||
|
Loading…
Reference in New Issue
Block a user