mirror of
https://github.com/radareorg/radare2.git
synced 2025-03-03 03:35:37 +00:00
Fix #22808 - null deref in r2 -a riscv -c "/ad li a7, 227" clue ##crash
This commit is contained in:
parent
f07d0ab664
commit
e0aa1eb78c
@ -199,8 +199,12 @@ R_API RList *r_core_asm_strsearch(RCore *core, const char *input, ut64 from, ut6
|
||||
r_asm_op_fini (&op);
|
||||
continue;
|
||||
}
|
||||
//opsz = op.size;
|
||||
opst = strdup (op.mnemonic);
|
||||
if (op.mnemonic) {
|
||||
//opsz = op.size;
|
||||
opst = strdup (op.mnemonic);
|
||||
} else {
|
||||
R_LOG_DEBUG ("Cannot disassemble at 0x%08"PFMT64x, addr);
|
||||
}
|
||||
r_asm_op_fini (&op);
|
||||
}
|
||||
if (opst) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user