mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
[FREELDR]
Add a hack to zero out heap allocations in the hope it fixes strange behavour svn path=/trunk/; revision=55599
This commit is contained in:
@@ -375,6 +375,9 @@ HeapAllocate(
|
||||
TRACE("HeapAllocate(%p, %ld, %.4s) -> return %p\n",
|
||||
HeapHandle, ByteSize, &Tag, Block->Data);
|
||||
|
||||
/* HACK: zero out the allocation */
|
||||
RtlZeroMemory(Block->Data, Block->Size * sizeof(HEAP_BLOCK));
|
||||
|
||||
#ifdef FREELDR_HEAP_VERIFIER
|
||||
/* Write size and redzones */
|
||||
*REDZONE_SIZE(Block) = ByteSize - REDZONE_ALLOCATION;
|
||||
|
||||
Reference in New Issue
Block a user