Skip to content

Segmentation fault (access null pointer) in ext/dom/xml_common.h #15551

Closed
@YuanchengJiang

Description

@YuanchengJiang

Description

The following code:

<?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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions