Skip to content

Commit 7feed59

Browse files
committed
Fix
1 parent a2aebaa commit 7feed59

File tree

3 files changed

+5
-2761
lines changed

3 files changed

+5
-2761
lines changed

Zend/zend_alloc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,7 +1217,7 @@ static zend_always_inline void zend_mm_delete_chunk(zend_mm_heap *heap, zend_mm_
12171217
heap->cached_chunks_count++;
12181218
chunk->next = heap->cached_chunks;
12191219
heap->cached_chunks = chunk;
1220-
ZEND_MM_POISON_CHUNK(chunk);
1220+
ZEND_MM_POISON_CHUNK(chunk, heap);
12211221
} else {
12221222
#if ZEND_MM_STAT || ZEND_MM_LIMIT
12231223
heap->real_size -= ZEND_MM_CHUNK_SIZE;
@@ -1239,7 +1239,7 @@ static zend_always_inline void zend_mm_delete_chunk(zend_mm_heap *heap, zend_mm_
12391239
chunk->next = heap->cached_chunks->next;
12401240
zend_mm_chunk_free(heap, heap->cached_chunks, ZEND_MM_CHUNK_SIZE);
12411241
heap->cached_chunks = chunk;
1242-
ZEND_MM_POISON_CHUNK(chunk);
1242+
ZEND_MM_POISON_CHUNK(chunk, heap);
12431243
}
12441244
}
12451245
}
@@ -2593,7 +2593,7 @@ ZEND_API void zend_mm_shutdown(zend_mm_heap *heap, bool full, bool silent)
25932593
heap->chunks_count--;
25942594
heap->cached_chunks_count++;
25952595
}
2596-
ZEND_MM_POISON_CHUNK_HDR(p);
2596+
ZEND_MM_POISON_CHUNK_HDR(p, heap);
25972597

25982598

25992599
if (full) {

Zend/zend_execute_API.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,8 @@ void shutdown_executor(void) /* {{{ */
431431
zval *zv;
432432
#if ZEND_DEBUG
433433
bool fast_shutdown = 0;
434+
#elif defined(__SANITIZE_ADDRESS__)
435+
bool fast_shutdown = !EG(full_tables_cleanup);
434436
#else
435437
bool fast_shutdown = is_zend_mm() && !EG(full_tables_cleanup);
436438
#endif

0 commit comments

Comments
 (0)