Roy Shea roy@cs.hmc.edu writes:
This is another revised and standalone version of the svchost patch. Changes in this revision include:
- Only using HEAP_ZERO_MEMORY in calls to HeapReAlloc. Calls to HeapAlloc explicitly set the NULL terminator when required.
The realloc is overkill too, you can just allocate one extra char from the start, and set it to zero unconditionally.