Skip to content

Commit 1275855

Browse files
committed
Poison custom chunk_alloc as well
1 parent 832dae0 commit 1275855

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Zend/zend_alloc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -938,6 +938,7 @@ static void *zend_mm_chunk_alloc(zend_mm_heap *heap, size_t size, size_t alignme
938938
if (UNEXPECTED(heap->storage)) {
939939
void *ptr = heap->storage->handlers.chunk_alloc(heap->storage, size, alignment);
940940
ZEND_ASSERT(((uintptr_t)((char*)ptr + (alignment-1)) & (alignment-1)) == (uintptr_t)ptr);
941+
ZEND_MM_POISON(ptr, size);
941942
return ptr;
942943
}
943944
#endif

0 commit comments

Comments
 (0)