Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: fd8940ddb7da8cfa3ec29501fe092eeb40a4ed6a
      
https://github.com/WebKit/WebKit/commit/fd8940ddb7da8cfa3ec29501fe092eeb40a4ed6a
  Author: Yusuke Suzuki <ysuz...@apple.com>
  Date:   2025-05-12 (Mon, 12 May 2025)

  Changed paths:
    A JSTests/stress/uint8array-base64-bad-char-decode.js
    M Source/WTF/wtf/simdutf/simdutf_impl.cpp.h
    M Source/WTF/wtf/simdutf/simdutf_impl.h
    M Source/WTF/wtf/text/Base64.cpp

  Log Message:
  -----------
  [JSC] Uint8Array.prototype.setFromBase64 doesn't work correctly in Ubuntu 
build
https://bugs.webkit.org/show_bug.cgi?id=290829
rdar://148546882

Reviewed by Yijia Huang.

Compared to the ECMAScript spec's behavior SIMDUTF library had a difference
that it does not fill the decoded buffer with some results when the input has
bad characters. New option is added to the library, thus this patch
upgrades SIMDUTF and use this new option to fix the issue.

* JSTests/stress/uint8array-base64-bad-char-decode.js: Added.
(shouldBe):
(shouldBeArray):
* Source/WTF/wtf/simdutf/simdutf_impl.cpp.h:
(simdutf::scalar::memcpy_atomic_read):
(simdutf::scalar::memcpy_atomic_write):
(simdutf::rvv::rvv_count_valid_utf8):
(simdutf::rvv::rvv_convert_utf32_to_utf16_with_errors):
(simdutf::rvv::rvv_utf8_to_common):
* Source/WTF/wtf/simdutf/simdutf_impl.h:
* Source/WTF/wtf/text/Base64.cpp:
(WTF::fromBase64Impl):

Canonical link: https://commits.webkit.org/294827@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to