[php-src] PR #18756: Do not delete main chunk in zend_gc

From: Date: Wed, 04 Jun 2025 10:24:52 +0000
Subject: [php-src] PR #18756: Do not delete main chunk in zend_gc
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-31949@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/18756 Author: danog Fixes an issue where invoking zend_mm_gc twice with no allocations causes a segfault, because the first zend_mm_gc assigns NULL to the next property when copying the chunk to the (initially empty) cached chunks list, which breaks the main chunk list which expects a circular linked list instead of a null-terminated linked list. This matches the behavior of the other invocation of zend_mm_gc, which is also skipped when acting upon the main chunk.

« previous php.git-pulls (#31949) next »