Skip to content

Commit c27fb82

Browse files
committed
More poisoning
1 parent d348c8d commit c27fb82

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Zend/zend_alloc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3240,9 +3240,9 @@ ZEND_API zend_mm_heap *zend_mm_get_heap(void)
32403240
ZEND_API bool zend_mm_is_custom_heap(zend_mm_heap *new_heap)
32413241
{
32423242
#if ZEND_MM_CUSTOM
3243-
ZEND_ASAN_UNPOISON_MEMORY_REGION(heap, sizeof(zend_mm_heap));
3243+
ZEND_ASAN_UNPOISON_MEMORY_REGION(AG(mm_heap), sizeof(zend_mm_heap));
32443244
bool ret = AG(mm_heap)->use_custom_heap;
3245-
ZEND_ASAN_POISON_MEMORY_REGION(heap, sizeof(zend_mm_heap));
3245+
ZEND_ASAN_POISON_MEMORY_REGION(AG(mm_heap), sizeof(zend_mm_heap));
32463246
return ret;
32473247
#else
32483248
return 0;
@@ -3306,7 +3306,7 @@ ZEND_API void zend_mm_get_custom_handlers_ex(zend_mm_heap *heap,
33063306
void (**_shutdown)(bool, bool))
33073307
{
33083308
#if ZEND_MM_CUSTOM
3309-
ZEND_ASAN_UNPOISON_MEMORY_REGION(_heap, sizeof(zend_mm_heap));
3309+
ZEND_ASAN_UNPOISON_MEMORY_REGION(heap, sizeof(zend_mm_heap));
33103310

33113311
zend_mm_heap *_heap = (zend_mm_heap*)heap;
33123312

0 commit comments

Comments
 (0)