Add an additional null name check in print.c

This commit is contained in:
Maijin 2019-01-24 23:21:45 +01:00 committed by radare
parent b022c95334
commit 6b3535ca36

View File

@ -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;