Fix #2102 - Fix crash in pDj 0

This commit is contained in:
pancake 2015-02-16 19:10:00 +01:00
parent 180d5b9793
commit e9b8269ec5

View File

@ -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? ",{": "{");