mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-27 07:00:30 +00:00
Fix #2102 - Fix crash in pDj 0
This commit is contained in:
parent
180d5b9793
commit
e9b8269ec5
@ -2446,6 +2446,9 @@ R_API int r_core_print_disasm_json(RCore *core, ut64 addr, ut8 *buf, int nb_byte
|
||||
r_core_read_at (core, at, buf, nb_bytes);
|
||||
i=0;
|
||||
}
|
||||
if (i>=nb_bytes) {
|
||||
break;
|
||||
}
|
||||
ret = r_asm_disassemble (core->assembler, &asmop, buf+i, nb_bytes-i);
|
||||
if (ret<1) {
|
||||
r_cons_printf (j>0? ",{": "{");
|
||||
|
Loading…
Reference in New Issue
Block a user