[PATCH] reg: Account for sizeof(WCHAR) when resizing the value name buffer during the query operation

Henri Verbeet hverbeet at gmail.com
Fri Jul 21 06:05:49 CDT 2017


On 21 July 2017 at 10:47, Hugh McMaster <hugh.mcmaster at outlook.com> wrote:
> -                value_name = HeapReAlloc(GetProcessHeap(), 0, value_name, max_value_len);
> +                value_name = HeapReAlloc(GetProcessHeap(), 0, value_name, max_value_len * sizeof(WCHAR));
Note that this leaks the existing "value_name" allocation if the
HeapReAlloc() call should fail.



More information about the wine-devel mailing list