mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00: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
Notes:
github-actions[bot]
2025-07-16 15:04:26 +00:00
Author: https://github.com/trflynn89
Commit: 0e6ee925f0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5472
Reviewed-by: https://github.com/gmta ✅
2 changed files with 17 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue