mirror of
https://github.com/reactos/reactos.git
synced 2024-09-15 23:28:15 +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:
parent
32d2f0f41c
commit
8c702c171c
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue