Skip to content

Commit f11d436

Browse files
authored
Fix
1 parent 4301651 commit f11d436

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/zend_alloc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3485,9 +3485,9 @@ static void poison_free(void *ptr ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC)
34853485
size_t size = zend_mm_size(heap, ptr ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
34863486

34873487
if (heap->debug.poison_free) {
3488-
ZEND_MM_UNPOISON(ptr, heap->debug.poison_free_value);
3488+
ZEND_MM_UNPOISON(ptr, size);
34893489
memset(ptr, heap->debug.poison_free_value, size);
3490-
ZEND_MM_POISON(ptr, heap->debug.poison_free_value);
3490+
ZEND_MM_POISON(ptr, size);
34913491
}
34923492
}
34933493

0 commit comments

Comments
 (0)