Meta+LibJS: Update simdutf to version 7.3.3

This contains a fix for handling invalid trailing padding characters.
This commit is contained in:
Timothy Flynn 2025-07-16 07:05:08 -04:00 committed by Jelle Raaijmakers
commit 0e6ee925f0
Notes: github-actions[bot] 2025-07-16 15:04:26 +00:00
2 changed files with 17 additions and 1 deletions

View file

@ -49,6 +49,22 @@ describe("errors", () => {
expect(() => {
Uint8Array.fromBase64("Zm9vaa=a", { lastChunkHandling: "strict" });
}).toThrowWithMessage(SyntaxError, "Invalid base64 character");
expect(() => {
Uint8Array.fromBase64("A==");
}).toThrowWithMessage(SyntaxError, "Invalid trailing data");
expect(() => {
Uint8Array.fromBase64("A==", { lastChunkHandling: "loose" });
}).toThrowWithMessage(SyntaxError, "Invalid trailing data");
expect(() => {
Uint8Array.fromBase64("A==", { lastChunkHandling: "strict" });
}).toThrowWithMessage(SyntaxError, "Invalid trailing data");
expect(() => {
Uint8Array.fromBase64("A==", { lastChunkHandling: "stop-before-partial" });
}).toThrowWithMessage(SyntaxError, "Invalid trailing data");
});
test("invalid alphabet", () => {

View file

@ -251,7 +251,7 @@
},
{
"name": "simdutf",
"version": "7.3.0#0"
"version": "7.3.3#0"
},
{
"name": "skia",