From fa2028e171e322a4992a270a11b2f2fc4afdaebe Mon Sep 17 00:00:00 2001 From: Riccardo Schirone Date: Mon, 1 Mar 2021 19:59:28 +0100 Subject: [PATCH] core/cmd_debug: fix OOB read when running 'dcu' (#745) --- librz/core/cmd_debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/librz/core/cmd_debug.c b/librz/core/cmd_debug.c index a3e19e4f85a..694d13b6254 100644 --- a/librz/core/cmd_debug.c +++ b/librz/core/cmd_debug.c @@ -4182,7 +4182,7 @@ RZ_IPI int rz_debug_continue_oldhandler(void *data, const char *input) { case 'u': // "dcu" if (input[1] == '?') { rz_core_cmd_help(core, help_msg_dcu); - } else if (input[1] == '.') { + } else if (input[1] == '.' || input[1] == '\0') { cmd_dcu(core, "cu $$"); } else { char *tmpinp = rz_str_newf("cu %s", input + 2);