From 6b3535ca36dc83f4272a48915ef365548a2653c0 Mon Sep 17 00:00:00 2001 From: Maijin Date: Thu, 24 Jan 2019 23:21:45 +0100 Subject: [PATCH] Add an additional null name check in print.c --- libr/util/print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libr/util/print.c b/libr/util/print.c index 31f86d1d45..2050c07bf5 100644 --- a/libr/util/print.c +++ b/libr/util/print.c @@ -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;