mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-01 10:38:51 +00:00
Fix r2 -a tms320 - -qc "pd 1"
segfault (via @maijin)
This commit is contained in:
parent
33ba03e9c0
commit
fe7b7c72c2
@ -413,6 +413,8 @@ static char *colorize_asm_string(RCore *core, RDisasmState *ds) {
|
||||
|
||||
scol1 = r_print_colorize_opcode (s1, ds->color_reg, ds->color_num); free(s1);
|
||||
scol2 = r_print_colorize_opcode (s2, ds->color_reg, ds->color_num); free(s2);
|
||||
if (!scol1) scol1 = strdup ("");
|
||||
if (!scol2) scol1 = strdup ("");
|
||||
|
||||
source = malloc (strlen(scol1) + strlen(scol2) + 2 + 1); // reuse source variable
|
||||
sprintf (source, "%s||%s", scol1, scol2);
|
||||
|
Loading…
Reference in New Issue
Block a user