Skip to content

Commit 587922b

Browse files
committed
Fix
1 parent 607cf2b commit 587922b

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
@@ -1993,6 +1993,7 @@ static zend_always_inline void *zend_mm_realloc_heap(zend_mm_heap *heap, void *p
19931993
ret = zend_mm_alloc_small(heap, ZEND_MM_SMALL_SIZE_TO_BIN(size) ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
19941994
copy_size = use_copy_size ? MIN(size, copy_size) : size;
19951995
ZEND_MM_UNPOISON(ret, size);
1996+
ZEND_MM_UNPOISON(ptr, copy_size);
19961997
memcpy(ret, ptr, copy_size);
19971998
zend_mm_free_small(heap, ptr, old_bin_num);
19981999
} else {

0 commit comments

Comments
 (0)