From 991d7d1e53eb7455e449c0249e4b1ab5f6c0f666 Mon Sep 17 00:00:00 2001 From: Riccardo Schirone Date: Mon, 1 Mar 2021 17:17:26 +0100 Subject: [PATCH] core/cmd_debug: fix OOB read when running 'dcu' --- 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 8332816b1be..2797e4e4500 100644 --- a/librz/core/cmd_debug.c +++ b/librz/core/cmd_debug.c @@ -4184,7 +4184,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);