Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ab37a057cd386226d8abfd2f33640ecd6e694ca8
      
https://github.com/WebKit/WebKit/commit/ab37a057cd386226d8abfd2f33640ecd6e694ca8
  Author: Darin Adler <[email protected]>
  Date:   2025-12-15 (Mon, 15 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:
  -----------
  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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to