[php-src] PR #13847: Fix GH-13833: Applying zero offset to null pointer in zend_hash.c
| From: | nielsdos | Date: | Sun, 31 Mar 2024 00:23:45 +0000 |
| Subject: | [php-src] PR #13847: Fix GH-13833: Applying zero offset to null pointer in zend_hash.c | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-25585@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/13847
Author: nielsdos
MAPPHAR_FAIL will call the destructor of the manifest, mounted_dirs, and virtual_dirs tables. When a
new phar object is allocated using (p)ecalloc, the bytes are zeroed, but the flag for an
uninitialized table is non-zero. So we have to manually set the flag in case that we have a code
path that can destroy the tables without first initializing them at least once.