[php-src] PR #18965: Fix OSS-Fuzz #427814452
| From: | nielsdos | Date: | Fri, 27 Jun 2025 21:51:27 +0000 |
| Subject: | [php-src] PR #18965: Fix OSS-Fuzz #427814452 | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-32230@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/18965
Author: nielsdos
Pipe compilation uses a temporary znode with QM_ASSIGN to remove references. Assert compilation
wants to look at the operand AST and convert it to a string. However the original AST is lost due to
the temporary znode. To solve this we either have to handle this specially in pipe compilation [1],
or store the AST anyway somehow. Special casing this either way is not worth the complexity in my
opinion, especially as it looks like a dynamic call anyway due to the FCC syntax.
[1] Prototype (incomplete) at
https://gist.github.com/nielsdos/50dc71718639c3af05db84a4dea6eb71
shows this is not worthwhile in my opinion.