Skip to content

Commit

Permalink
Escape dwarf info in json (radareorg#10616)
Browse files Browse the repository at this point in the history
  • Loading branch information
xarkes authored and radare committed Jul 4, 2018
1 parent 812b96a commit 9bedab5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libr/core/disasm.c
Original file line number Diff line number Diff line change
Expand Up @@ -3234,6 +3234,9 @@ static void ds_print_dwarf(RDisasmState *ds) {
}
// handle_set_pre (ds, " ");
ds_align_comment (ds);
if (ds->use_json) {
chopstr = r_str_escape (chopstr);
}
if (ds->show_color) {
r_cons_printf ("%s; %s"Color_RESET, ds->pal_comment, chopstr);
} else {
Expand Down

0 comments on commit 9bedab5

Please sign in to comment.