mirror of
https://github.com/radareorg/radare2.git
synced 2025-03-06 05:17:38 +00:00
'push rip' is not a valid instruction ##asm (#15804)
This commit is contained in:
parent
87235e5393
commit
551a0986d6
@ -2364,6 +2364,10 @@ static int oppush(RAsm *a, ut8 *data, const Opcode *op) {
|
||||
data[l++] = 0x41;
|
||||
}
|
||||
ut8 base = 0x50;
|
||||
if (op->operands[0].reg == X86R_RIP) {
|
||||
eprintf ("Invalid register\n");
|
||||
return -1;
|
||||
}
|
||||
data[l++] = base + op->operands[0].reg;
|
||||
}
|
||||
} else if (op->operands[0].type & OT_MEMORY) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user