Commit 976c2aa6 authored by Hugh McMaster's avatar Hugh McMaster Committed by Alexandre Julliard

regedit: Prevent out-of-bounds reads when unescaping a string (Valgrind).

parent 79c3b610
......@@ -403,6 +403,7 @@ static BOOL REGPROC_unescape_string(WCHAR *str, WCHAR **unparsed)
str[val_idx] = str[str_idx];
break;
default:
if (!str[str_idx]) return FALSE;
output_message(STRING_ESCAPE_SEQUENCE, str[str_idx]);
str[val_idx] = str[str_idx];
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment