[php-src] PR #21887: ext/xsl: handle xsltNewTransformContext allocation failure
| From: | iliaal | Date: | Mon, 27 Apr 2026 12:57:18 +0000 |
| Subject: | [php-src] PR #21887: ext/xsl: handle xsltNewTransformContext allocation failure | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-35911@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21887
Author: iliaal
xsltNewTransformContext returns NULL on libxslt-internal allocation failure; the next
line dereferenced ctxt to set _private and segfaulted. Bail through the
existing out: label, which handles secPrefs and
intern->doc cleanup. xsltFreeTransformContext(NULL) is a documented
no-op in libxslt.