AK: Fix base64 decoding '/'

When creating the lookup table, it wouldn't add the last
character
This commit is contained in:
BenJilks 2020-10-18 14:34:27 +00:00 committed by Andreas Kling
parent 1c27568ab0
commit 29ada654b1
Notes: sideshowbarker 2024-07-19 01:19:27 +09:00

View File

@ -56,7 +56,7 @@ static constexpr auto make_lookup_table()
{
constexpr auto alphabet = make_alphabet();
Array<u8, 256> 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;