'push rip' is not a valid instruction ##asm (#15804)

This commit is contained in:
radare 2020-01-14 14:36:45 +01:00 committed by GitHub
parent 87235e5393
commit 551a0986d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {