Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 5f7d3882def00cd53293dd709c853518f8af0705
https://github.com/WebKit/WebKit/commit/5f7d3882def00cd53293dd709c853518f8af0705
Author: Darin Adler <[email protected]>
Date: 2025-12-17 (Wed, 17 Dec 2025)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/encoding/textdecoder-eof.any.js
M Source/WebCore/PAL/pal/text/TextCodecCJK.cpp
Log Message:
-----------
Big5 decoder doesn't recover to emit ASCII after an invalid leading byte
https://bugs.webkit.org/show_bug.cgi?id=304238
rdar://166672674
Reviewed by Anne van Kesteren.
* LayoutTests/imported/w3c/web-platform-tests/encoding/textdecoder-eof.any.js:
Added test cases for this bug and a couple other Big5 decoding bugs that were
reported at the same time. This is probably not the ideal place for these tests,
but it's better to have them somewhere inside WPT rather than waiting to find
the perfect place. Anyone is welcome to reorganize and clean up the location of
these in WPT, I will not be offended.
* Source/WebCore/PAL/pal/text/TextCodecCJK.cpp:
(PAL::TextCodecCJK::big5Decode): Added m_prependedByte logic to one place it
was missing.
Canonical link: https://commits.webkit.org/304591@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications