[php-src] PR #16716: Fix GH-16630: UAF in lexer with encoding translation and heredocs
| From: | nielsdos | Date: | Wed, 06 Nov 2024 19:30:49 +0000 |
| Subject: | [php-src] PR #16716: Fix GH-16630: UAF in lexer with encoding translation and heredocs | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-29538@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/16716
Author: nielsdos
zend_save_lexical_state() can be nested multiple times, for example for the parser initialization
and then in the heredoc lexing. The input should not be freed if we restore to the same filtered
string.