Files
ladybird/AK/Base64.cpp
Tim Ledbetter 39585b1a00 AK: Don't convert encode_base64_impl() input to StringView
Since e47cdc6b, converting `ReadonlyBytes` to a `StringView` will crash
if the `ReadonlyBytes` given us empty. This caused a crash when calling
`btoa("")`, which called encode_base64() with an empty `ReadonlyBytes`.
We now don't convert the input from `ReadonlyBytes` to
`StringView`, which avoids this problem.
2026-03-31 18:14:28 +01:00

4.6 KiB