mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-26 20:55:35 +03:00
AK: Fix base64 decoding '/'
When creating the lookup table, it wouldn't add the last character
This commit is contained in:
parent
1c27568ab0
commit
29ada654b1
Notes:
sideshowbarker
2024-07-19 01:19:27 +09:00
Author: https://github.com/BenJilks Commit: https://github.com/SerenityOS/serenity/commit/29ada654b15 Pull-request: https://github.com/SerenityOS/serenity/pull/3792 Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/linusg
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user