Skip to content

Commit fab35a3

Browse files
committed
More poisoning
1 parent eb2033f commit fab35a3

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
@@ -1617,6 +1617,7 @@ static zend_never_inline void *zend_mm_realloc_slow(zend_mm_heap *heap, void *pt
16171617
size_t orig_peak = heap->peak;
16181618
#endif
16191619
ret = zend_mm_alloc_heap(heap, size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
1620+
ZEND_ASAN_UNPOISON_MEMORY_REGION(ptr, copy_size);
16201621
memcpy(ret, ptr, copy_size);
16211622
zend_mm_free_heap(heap, ptr ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
16221623
#if ZEND_MM_STAT

0 commit comments

Comments
 (0)