[php-src] PR #16335: Fix GH-16326: Memory management is broken for bad dictionaries
| From: | cmb69 | Date: | Wed, 09 Oct 2024 22:46:36 +0000 |
| Subject: | [php-src] PR #16335: Fix GH-16326: Memory management is broken for bad dictionaries | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-29121@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/16335
Author: cmb69
We must not
efree() zend_strings, since they may have a refcount greater
than one, and may even be interned.
We also must not confuse zend_string * with zend_string **.
And we should play it safe by using safe_emalloc() to avoid theoretical integer
overflows.