Skip to content

Commit

Permalink
core/cmd_debug: fix OOB read when running 'dcu'
Browse files Browse the repository at this point in the history
  • Loading branch information
ret2libc committed Mar 1, 2021
1 parent ea879f7 commit 991d7d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion librz/core/cmd_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 991d7d1

Please sign in to comment.