Branch: refs/heads/webkitglib/2.50
Home: https://github.com/WebKit/WebKit
Commit: 4b3ac0eec288f490d05e253f4809733e2eac01ee
https://github.com/WebKit/WebKit/commit/4b3ac0eec288f490d05e253f4809733e2eac01ee
Author: Darin Adler <[email protected]>
Date: 2025-12-30 (Tue, 30 Dec 2025)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/encoding/textdecoder-eof.any.js
M Source/WebCore/PAL/pal/text/TextCodecUTF8.cpp
Log Message:
-----------
Cherry-pick 304496@main (ab37a057cd38).
https://bugs.webkit.org/show_bug.cgi?id=304181
Incorrect handling of invalid UTF-8 in streaming decoder
https://bugs.webkit.org/show_bug.cgi?id=304181
rdar://166583808
Reviewed by Alex Christensen.
*
LayoutTests/imported/w3c/web-platform-tests/encoding/textdecoder-eof.any.js:
Tightened the tests a little and added a test case that runs into this bug,
basically the one in the report.
* Source/WebCore/PAL/pal/text/TextCodecUTF8.cpp:
(PAL::TextCodecUTF8::handlePartialSequence):
Added missing code to move the characters left in the partial sequence
buffer
after handling a valid sequence from the buffer.
Canonical link: https://commits.webkit.org/304496@main
Canonical link: https://commits.webkit.org/298234.371@webkitglib/2.50
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications