We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4301651 commit f11d436Copy full SHA for f11d436
Zend/zend_alloc.c
@@ -3485,9 +3485,9 @@ static void poison_free(void *ptr ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC)
3485
size_t size = zend_mm_size(heap, ptr ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
3486
3487
if (heap->debug.poison_free) {
3488
- ZEND_MM_UNPOISON(ptr, heap->debug.poison_free_value);
+ ZEND_MM_UNPOISON(ptr, size);
3489
memset(ptr, heap->debug.poison_free_value, size);
3490
- ZEND_MM_POISON(ptr, heap->debug.poison_free_value);
+ ZEND_MM_POISON(ptr, size);
3491
}
3492
3493
0 commit comments