diff options
Diffstat (limited to 'AK/Base64.cpp')
-rw-r--r-- | AK/Base64.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/AK/Base64.cpp b/AK/Base64.cpp index 04e67e6b54..661d9c53ee 100644 --- a/AK/Base64.cpp +++ b/AK/Base64.cpp @@ -87,7 +87,8 @@ ByteBuffer decode_base64(const StringView& input) output.append(out2); } - return ByteBuffer::copy(output.data(), output.size()); + // FIXME: Handle OOM failure. + return ByteBuffer::copy(output).release_value(); } String encode_base64(ReadonlyBytes input) |