Refuse to assemble group 1 ops with dwords on 64bit (#8257)

FIX #268
This commit is contained in:
Sven Steinbauer 2017-08-22 00:12:11 +01:00 committed by radare
parent a635b34c77
commit 1064fdba62

View File

@ -347,6 +347,12 @@ static int process_1byte_op(RAsm *a, ut8 *data, const Opcode *op, int op1) {
return l;
}
if (a->bits == 64) {
if (!(op->operands[0].type & op->operands[1].type)) {
return -1;
}
}
if (a->bits == 64 &&
((op->operands[0].type & OT_QWORD) |
(op->operands[1].type & OT_QWORD))) {