Re: [PATCH 2/3] regedit: Validate REG_SZ import data before processing it any further
12 Apr
2017
12 Apr
'17
5:07 p.m.
Hugh McMaster <hugh.mcmaster(a)outlook.com> writes:
@@ -390,6 +390,25 @@ static const WCHAR *reg_type_to_wchar(DWORD type) return NULL; }
+static BOOL validate_reg_sz_data(WCHAR *str) +{ + WCHAR *p, *end; + + if (!*str || !(p = strchrW(str, '"'))) + return FALSE; + + while (*p && *(p - 1) == '\\') + p = strchrW(++p, '"');
The backslash could have been escaped, you have to check the whole string. -- Alexandre Julliard julliard(a)winehq.org
3257
Age (days ago)
3257
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard