fixed the problem which was about ood having caused heap-buffer-overflow in asan (#10220)

This commit is contained in:
Vanellope 2018-05-29 17:44:20 +09:00 committed by Anton Kochkov
parent cad927a591
commit 4b89bec614

View File

@ -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';