Skip to content

Commit

Permalink
core/cmd_debug: fix OOB read when running 'dcu' (#745)
Browse files Browse the repository at this point in the history
  • Loading branch information
ret2libc authored Mar 1, 2021
1 parent 8a69088 commit fa2028e
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 @@ -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);
Expand Down

0 comments on commit fa2028e

Please sign in to comment.