ladybird/Userland/Libraries/LibCrypto/ASN1
Ben Wiederhake 05d49cc0cb LibCrypto: Fix bound checks when reading bitmaps
This only affects malformed RSA keys. Instead of accepting and
continuing with potentially broken pointers (and in ASAN, crashing), we
now consider bitmaps malformed, and stop parsing.

Found by OSS Fuzz: #31698, long-standing-bug:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=31698

Fun fact: The "if" only exists because of OSS Fuzz.
8cc279ed74
2021-05-31 00:47:43 +04:30
..
ASN1.cpp Everywhere: Fix a bunch of typos 2021-05-17 17:48:55 +01:00
ASN1.h AK+Userland: Use mpfard@serenityos.org for my copyright headers 2021-04-22 22:19:09 +02:00
DER.cpp LibCrypto: Fix bound checks when reading bitmaps 2021-05-31 00:47:43 +04:30
DER.h AK+Userland: Use mpfard@serenityos.org for my copyright headers 2021-04-22 22:19:09 +02:00
PEM.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
PEM.h AK+Userland: Use mpfard@serenityos.org for my copyright headers 2021-04-22 22:19:09 +02:00