Skip to content

Commit e800e53

Browse files
committed
Improvements
1 parent 340d985 commit e800e53

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
@@ -2860,6 +2860,7 @@ ZEND_API size_t ZEND_FASTCALL _zend_mm_block_size(zend_mm_heap *heap, void *ptr
28602860
return Z_LVAL_P(size_zv);
28612861
}
28622862
} else if (heap->custom_heap._malloc != poison_malloc) {
2863+
ZEND_MM_POISON_HEAP(heap);
28632864
return 0;
28642865
}
28652866
ZEND_MM_POISON_HEAP(heap);
@@ -3148,7 +3149,7 @@ ZEND_API void* ZEND_FASTCALL _erealloc2(void *ptr, size_t size, size_t copy_size
31483149
ZEND_MM_UNPOISON_HEAP(AG(mm_heap));
31493150
if (UNEXPECTED(AG(mm_heap)->use_custom_heap)) {
31503151
ptr = AG(mm_heap)->custom_heap._realloc(ptr, size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
3151-
ZEND_MM_UNPOISON_HEAP(AG(mm_heap));
3152+
ZEND_MM_POISON_HEAP(AG(mm_heap));
31523153
return ptr;
31533154
}
31543155
#endif

0 commit comments

Comments
 (0)