[php-src] PR #13892: Fix GH-13891: memleak and segfault when using ini_set with session.trans_sid_hosts
| From: | nielsdos | Date: | Fri, 05 Apr 2024 19:49:41 +0000 |
| Subject: | [php-src] PR #13892: Fix GH-13891: memleak and segfault when using ini_set with session.trans_sid_hosts | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-25635@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/13892
Author: nielsdos
The hash tables used are allocated via the persistent allocator. When using ini_set, the allocation
happens via the non-persistent allocator. When the table is then freed in GSHUTDOWN, we get a crash
because the allocators are mismatched.
As a side note, it is strange that this is designed this way, because it means that ini_sets persist
between requests...
Test credits go to Kamil Tekiela.