[php-src] PR #26061: Fix GH-25681: UAF/double-free on re-entrant unregister_tick_function(…
| From: | chenshengyou170-wq | Date: | Fri, 04 Dec 2026 09:43:34 +0000 |
| Subject: | [php-src] PR #26061: Fix GH-25681: UAF/double-free on re-entrant unregister_tick_function(… | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-41408@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/26061
Author: chenshengyou170-wq
…) in RSHUTDOWN
Reset l->head, l->tail, and l->count before invoking element destructors in
zend_llist_destroy() (matching DEL_LLIST_ELEMENT and zend_llist_remove_tail), and detach
BG(user_tick_functions) before destroying it in PHP_RSHUTDOWN(basic).
Fixes GH-25681.