[php-src] PR #19012: Fix OSS-Fuzz #428983568 and #428760800
| From: | nielsdos | Date: | Wed, 02 Jul 2025 18:43:51 +0000 |
| Subject: | [php-src] PR #19012: Fix OSS-Fuzz #428983568 and #428760800 | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-32292@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/19012
Author: nielsdos
Both these issues have the same root cause, their reproducer is extremely similar so I don't
duplicate the test.
If the parser invokes the lexer, and the lexer fails, it could've allocated a string which must
be freed when the parser backs up. The
%destructor list is responsible for this but did
not have an entry for fallback yet. Solve the issue by adding such an entry.