mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-14 02:51:12 +00:00
fixed the problem which was about ood having caused heap-buffer-overflow in asan (#10220)
This commit is contained in:
parent
cad927a591
commit
4b89bec614
@ -442,6 +442,7 @@ static char *get_and_escape_path (char *str)
|
||||
char *path_bin_escaped = r_str_arg_escape (path_bin);
|
||||
int len = strlen (path_bin_escaped);
|
||||
|
||||
path_bin_escaped = realloc (path_bin_escaped, len + 2);
|
||||
path_bin_escaped[len] = ' ';
|
||||
path_bin_escaped[len + 1] = '\0';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user