[php-src] PR #12681: Fix GH-12616: DOM: Removing XMLNS namespace node results in invalid default: prefix
| From: | nielsdos | Date: | Wed, 15 Nov 2023 20:32:52 +0000 |
| Subject: | [php-src] PR #12681: Fix GH-12616: DOM: Removing XMLNS namespace node results in invalid default: prefix | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-24189@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/12681
Author: nielsdos
The namespace data is freed and set to NULL, but there remain references to the namespace
declaration nodes. This (rightfully) confuses libxml2 because its invariants are broken. We also
have to remove all remaining references from the subtree. This fixes the data corruption bug.