From 1b2b2f9d807780cf03964a30801644c8bc3b698b Mon Sep 17 00:00:00 2001 From: Jake Champion Date: Tue, 26 Sep 2023 14:36:29 +0100 Subject: [PATCH] fix: ensure we throw an error when trying to base64 decode _ via `atob` --- runtime/js-compute-runtime/js-compute-builtins.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/js-compute-runtime/js-compute-builtins.cpp b/runtime/js-compute-runtime/js-compute-builtins.cpp index 10b788c7cc..9e6db875a3 100644 --- a/runtime/js-compute-runtime/js-compute-builtins.cpp +++ b/runtime/js-compute-runtime/js-compute-builtins.cpp @@ -280,7 +280,7 @@ const uint8_t base64DecodeTable[128] = { /* 64 */ nonAlphabet, 0, 1, 2, 3, 4, 5, 6, /* 72 */ 7, 8, 9, 10, 11, 12, 13, 14, /* 80 */ 15, 16, 17, 18, 19, 20, 21, 22, - /* 88 */ 23, 24, 25, nonAlphabet, nonAlphabet, nonAlphabet, nonAlphabet, 63, + /* 88 */ 23, 24, 25, nonAlphabet, nonAlphabet, nonAlphabet, nonAlphabet, nonAlphabet, /* 96 */ nonAlphabet, 26, 27, 28, 29, 30, 31, 32, /* 104 */ 33, 34, 35, 36, 37, 38, 39, 40, /* 112 */ 41, 42, 43, 44, 45, 46, 47, 48,