php-src/ext/xmlreader
Niels Dossche 5c1249391b
Fix GH-16292: Segmentation fault in ext/xmlreader/php_xmlreader.c:1282
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().

Closes GH-16307.
2024-10-08 20:54:07 +02:00
..
tests Fix GH-16292: Segmentation fault in ext/xmlreader/php_xmlreader.c:1282 2024-10-08 20:54:07 +02:00
config.m4
config.w32
CREDITS
php_xmlreader.c Fix GH-16292: Segmentation fault in ext/xmlreader/php_xmlreader.c:1282 2024-10-08 20:54:07 +02:00
php_xmlreader.h Declare ext/xmlreader constants in stubs (#9133) 2022-07-26 05:57:11 +02:00
php_xmlreader.stub.php Declare ext/xmlreader constants in stubs (#9133) 2022-07-26 05:57:11 +02:00
php_xmlreader_arginfo.h Declare ext/xmlreader constants in stubs (#9133) 2022-07-26 05:57:11 +02:00