Remove an unsafe memory write in HeapFree
authorJohn Chen <jochen@microsoft.com>
Fri, 13 Nov 2015 21:49:43 +0000 (13:49 -0800)
committerJohn Chen <jochen@microsoft.com>
Fri, 13 Nov 2015 21:49:43 +0000 (13:49 -0800)
commit0f6dd7966ea98820b10d2dce87a90769eaf644f9
tree2ce8a6378b2bdeb59737c9c2a14021c9b9c1f7ba
parentd9baf060f209f20c302700b2aee778b48e32b9dc
Remove an unsafe memory write in HeapFree

The PAL implementation of HeapFree assumes that the memory region always
have at least 4 bytes. Depending on the heap implementation, this is not
necessarily true, and can potentially cause memory corruption.
src/pal/src/memory/heap.cpp