From 29ada654b158f5c92830c38f4bffe203d229be70 Mon Sep 17 00:00:00 2001 From: BenJilks Date: Sun, 18 Oct 2020 14:34:27 +0000 Subject: [PATCH] AK: Fix base64 decoding '/' When creating the lookup table, it wouldn't add the last character --- AK/Base64.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AK/Base64.cpp b/AK/Base64.cpp index 4ed14e0130..35f7934f44 100644 --- a/AK/Base64.cpp +++ b/AK/Base64.cpp @@ -56,7 +56,7 @@ static constexpr auto make_lookup_table() { constexpr auto alphabet = make_alphabet(); Array table {}; - for (size_t i = 0; i < alphabet.size() - 1; ++i) { + for (size_t i = 0; i < alphabet.size(); ++i) { table[alphabet[i]] = i; } return table;