mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-19 05:38:43 +00:00
Add an additional null name check in print.c
This commit is contained in:
parent
b022c95334
commit
6b3535ca36
@ -1973,7 +1973,7 @@ R_API char* r_print_colorize_opcode(RPrint *print, char *p, const char *reg, con
|
||||
if (p[i + 1] == 'x') {
|
||||
if (print->flags & R_PRINT_FLAGS_SECSUB) {
|
||||
RIOMap *map = print->iob.map_get (print->iob.io, r_num_get (NULL, p + i));
|
||||
if (map) {
|
||||
if (map && map->name) {
|
||||
if (strlen (map->name) + j + 1 >= COLORIZE_BUFSIZE) {
|
||||
eprintf ("stop before overflow\n");
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user