ladybird/Userland/Libraries/LibCrypto/PK
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
..
Code LibCrypto: Change static constexpr array to function local constexpr 2021-05-17 19:37:56 +01:00
PK.h AK+Userland: Use mpfard@serenityos.org for my copyright headers 2021-04-22 22:19:09 +02:00
RSA.cpp Userland: Replace arc4random() with get_random<u32>() 2021-05-14 22:24:02 +02:00
RSA.h LibCrypto: Fix bound checks when reading bitmaps 2021-05-31 00:47:43 +04:30