[php-src] Issue #15551: Segmentation fault (access null pointer) in ext/dom/xml_common.h

From: Date: Fri, 23 Aug 2024 02:53:03 +0000
Subject: [php-src] Issue #15551: Segmentation fault (access null pointer) in ext/dom/xml_common.h
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-247577@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/15551 Author: YuanchengJiang ### Description The following code: ```php <?php $fragment = new DOMDocumentFragment(); $fusion = $fragment; $nodes = $fusion->childNodes; $iter = $nodes->getIterator(); $iter->next(); ``` Resulted in this output: ``` Segfault ext/dom/xml_common.h:33:36: runtime error: applying non-zero offset 18446744073709551592 to null pointer SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ext/dom/xml_common.h:33:36 in ``` ### PHP Version PHP 8.4.0-dev ### Operating System ubuntu 22.04

« previous php.bugs (#247577) next »