Skip to content

Assertion failure ext/dom/php_dom.c:428 #17397

Closed

Description

@YuanchengJiang

Description

The following code:

<?php
$dom = Dom\HTMLDocument::createFromString('<!DOCTYPE html><html></html>');
$dt1 = clone $dom->doctype;
$fusion = $dt1;
$fusion->prefix = $badStr;

Resulted in this output:

php: /home/phpfuzz/WorkSpace/flowfusion/php-src/ext/dom/php_dom.c:428: zval *dom_write_property(zend_object *, zend_string *, zval *, void **): Assertion `prop && (((prop->type).type_mask & ((1u << 25) - 1)) != 0)' failed.
Aborted (core dumped)

PHP Version

nightly

Operating System

No response

Activity

  1. added a commit that references this issue on Jan 8, 2025
    097e495
  2. added a commit that references this issue on Jan 8, 2025
    6d21598
  3. added a commit that references this issue on Jan 8, 2025
    6cbe2ed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions