[php-src] PR #12768: fix segfault in `ZEND_FUNC_GET_ARGS`
| From: | realFlowControl | Date: | Fri, 24 Nov 2023 14:10:11 +0000 |
| Subject: | [php-src] PR #12768: fix segfault in `ZEND_FUNC_GET_ARGS` | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-24306@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/12768
Author: realFlowControl
This PR is based on the work of https://github.com/php/php-src/pull/12758
In case a
ZEND_FUNC_GET_ARGS is being executed, while the current chunk is full, the
zend_new_array() call will trigger a OOM in ZendMM which will crash, as the opline
might be a dangling pointer.
Commit https://github.com/php/php-src/commit/1cf0bcb2756db43157b983e1648294dffdd13f13
brings the test and the fix