mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-25 06:09:50 +00:00
Fix #6147 - Force at least 1 byte of instruction for the zignatures
This commit is contained in:
parent
7f14e52ace
commit
2e040cd386
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user