[php-src] PR #17628: Fix potential read of uninitialized padding data in DOM
| From: | nielsdos | Date: | Wed, 29 Jan 2025 21:56:42 +0000 |
| Subject: | [php-src] PR #17628: Fix potential read of uninitialized padding data in DOM | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-30579@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/17628
Author: nielsdos
The fix for GH-17481 introduced a regression that can cause the read of uninitialized padding data
when going over a chunk boundary during HTML parsing of UTF-8.
The wrong offset was computed with respect to the input buffer, the length of the error-corrected
UTF-8 code point is not necessarily the same as the input code point length.
This was not noticed because no CI jobs run with Valgrind nor I do it regularly, and ASAN
doesn't catch uninitialized accesses.