Bug #78025 [Opn->Ver]: segfault when accessing properties of DOMDocumentType
| From: | sjon@php.net | Date: | Fri, 17 May 2019 09:04:49 +0000 |
| Subject: | Bug #78025 [Opn->Ver]: segfault when accessing properties of DOMDocumentType | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-220879@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78025&edit=1
ID: 78025
Updated by: sjon@php.net
Reported by: ph dot fritsche at gmail dot com
-Summary: AppCrash when accessing properties of
DOMDocumentType
+Summary: segfault when accessing properties of
DOMDocumentType
-Status: Open
+Status: Verified
Type: Bug
Package: DOM XML related
Operating System: Windows
PHP Version: 7.2.18
Block user comment: N
Private report: N
New Comment:
I can confirm - see https://3v4l.org/LE4P6. Happens on all of
the supported versions (on linux as well)
Previous Comments:
------------------------------------------------------------------------
[2019-05-17 09:01:14] ph dot fritsche at gmail dot com
Description:
------------
PHP crashes when accessing properties of DOMDocumentType after loading a malformed declaration.
code: c0000005
offset: 00000000002985c3
Test script:
---------------
<?php
$htm = "<!DOCTYPE><html></html>";
$dom = new DOMDocument;
$dom->loadHTML($htm);
$dom->doctype;
var_dump("i'm still here");
$dom->doctype->name;
var_dump("i'm not");
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78025&edit=1