[php-src] PR #16307: Fix GH-16292: Segmentation fault in ext/xmlreader/php_xmlreader.c:1282

From: Date: Tue, 08 Oct 2024 18:20:27 +0000
Subject: [php-src] PR #16307: Fix GH-16292: Segmentation fault in ext/xmlreader/php_xmlreader.c:1282
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-29102@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/16307 Author: nielsdos 3 issues: 1) RETURN_NULL() was used via the macro NODE_GET_OBJ(), but the function returns false on failure and cannot return null according to its stub. 2) The struct layout of the different implementors of libxml only guarantees overlap between the node pointer and the document reference, so accessing the std zend_object may not work. 3) DOC_GET_OBJ() wasn't using ZSTR_VAL(). Note to self: update the condition in php_xmlreader.c upon merging up.

« previous php.git-pulls (#29102) next »