mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
Meta+LibJS: Update simdutf to version 7.3.3
This contains a fix for handling invalid trailing padding characters.
This commit is contained in:
parent
66b21eee04
commit
0e6ee925f0
|
|
@ -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", () => {
|
||||
|
|
|
|||
|
|
@ -251,7 +251,7 @@
|
|||
},
|
||||
{
|
||||
"name": "simdutf",
|
||||
"version": "7.3.0#0"
|
||||
"version": "7.3.3#0"
|
||||
},
|
||||
{
|
||||
"name": "skia",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user