Files
php-src/ext/dom/tests
Christoph M. Becker a08847ab39 Fix #66783: UAF when appending DOMDocument to element
According to the DOM standard, elements may only contain element, text,
processing instruction and comment nodes[1].  It is also specified that
a HierarchyRequestError should be thrown if a document is to be
inserted[2].  We follow that standard, and prevent the use-after-free
this way.

[1] <https://dom.spec.whatwg.org/#node-trees>
[2] <https://dom.spec.whatwg.org/#mutation-algorithms>

Closes GH-6765.
2021-03-17 12:37:18 +01:00
..
2018-09-21 14:12:25 +02:00
2018-09-21 14:12:25 +02:00
…
2018-09-21 14:12:25 +02:00
…
2018-02-04 17:26:37 +01:00
2018-02-04 17:26:37 +01:00
2017-03-02 12:35:42 +01:00
2018-08-28 14:02:11 +02:00
2020-02-14 09:21:13 +01:00
2018-10-14 19:45:12 +02:00
…
…
…
2019-09-04 08:36:11 +02:00