Fix #6147 - Force at least 1 byte of instruction for the zignatures

This commit is contained in:
pancake 2016-11-23 11:31:24 +01:00
parent 7f14e52ace
commit 2e040cd386

View File

@ -97,6 +97,10 @@ R_API int r_anal_op(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *data, int le
if (len > 0 && anal->cur && anal->cur->op) {
ret = anal->cur->op (anal, op, addr, data, len);
op->addr = addr;
/* consider at least 1 byte to be part of the opcode */
if (op->nopcode < 1) {
op->nopcode = 1;
}
//free the previous var in op->var
tmp = get_used_var (anal, op);
if (tmp) {