Skip to content

Commit eb2033f

Browse files
committed
More poisoning
1 parent 0e1883d commit eb2033f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Zend/zend_alloc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1824,7 +1824,8 @@ static zend_always_inline void *zend_mm_realloc_heap(zend_mm_heap *heap, void *p
18241824
dbg->orig_lineno = __zend_orig_lineno;
18251825
#endif
18261826
ZEND_ASAN_POISON_CHUNK_HEADER_NOT_HEAP(chunk, heap);
1827-
printf("Reallocated (3) %zu bytes from %p to %p\n", size, ptr, ptr);
1827+
ZEND_ASAN_UNPOISON_MEMORY_REGION(ptr, size);
1828+
printf("Reallocated (3) %zu => %zu bytes from %p to %p\n", old_size, size, ptr, ptr);
18281829
return ptr;
18291830
} else if (new_size < old_size) {
18301831
/* free tail pages */

0 commit comments

Comments
 (0)