sin-ack
f6b1db37fc
Tests: Convert TestBase64 decode test to use StringViews directly
...
Previously it would rely on the implicit StringView conversions. Now the
decode_equal function will directly use StringViews.
2022-07-12 23:11:35 +02:00
Idan Horowitz
086969277e
Everywhere: Run clang-format
2022-04-01 21:24:45 +01:00
Andreas Kling
f2663f477f
AK: Ignore whitespace while decoding base64
...
This matches how other implementations behave.
1% progression on ACID3. :^)
2022-02-25 19:54:13 +01:00
Sam Atkins
c388a879d7
AK+Userland: Make AK::decode_base64 return ErrorOr
2022-01-24 22:36:09 +01:00
Ben Wiederhake
768b70cc4d
AK+Tests: Avoid implicitly copying ByteBuffer
2021-12-08 09:46:13 -08:00
Ben Wiederhake
cb868cfa41
AK+Everywhere: Make Base64 decoding fallible
2021-10-23 19:16:40 +01:00
Ben Wiederhake
3bf1f7ae87
AK: Don't crash on invalid Base64 input
...
In the long-term, we should probably have a way to signal decoding
failure. For now, it should suffice to at least not crash. This is
particularly relevant because apparently this can be triggered while
parsing a PEM certificate, which happens during every TLS connection.
Found by OSS Fuzz
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=38979
2021-10-23 19:16:40 +01:00
Brian Gianforcaro
d1644c26d6
Tests: Remove unused header includes
2021-08-01 08:10:16 +02:00
Brian Gianforcaro
67322b0702
Tests: Move AK tests to Tests/AK
2021-05-06 17:54:28 +02:00