[php-src] PR #16467: Fix GH-16465: Heap buffer overflow in DOMNode->getElementByTagName
| From: | nielsdos | Date: | Wed, 16 Oct 2024 18:09:12 +0000 |
| Subject: | [php-src] PR #16467: Fix GH-16465: Heap buffer overflow in DOMNode->getElementByTagName | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-29267@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/16467
Author: nielsdos
If the input contains NUL bytes then the length doesn't match the actual duplicated
string's length. Note that libxml can't handle this properly anyway so we just reject NUL
bytes and too long strings.