On Saturday, 23 April 2016 3:35 AM, Sebastian Lackner wrote:
The current calculation does not take the terminating \0 into account.
-buffer = HeapAlloc(GetProcessHeap(), 0, tmp_size * 2); +buffer = HeapAlloc(GetProcessHeap(), 0, tmp_size * 2 + sizeof(WCHAR));
Which particular cases cause the heap corruption?
-- Hugh McMaster