]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
Prevent crash on malformed subjectPublicKey
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Tue, 6 Aug 2024 16:28:57 +0000 (10:28 -0600)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Tue, 6 Aug 2024 16:28:57 +0000 (10:28 -0600)
commit5689dea5e878fed28c5f338a27d7cda4151a14f1
tree6f0a6dc121d4c20135e37f16d002f44e921e3200
parentd8e36c520e86eba6748e58824c30eb8a725d2450
Prevent crash on malformed subjectPublicKey

A malformed subjectPublicKey causes X509_PUBKEY_get0() to return NULL.
Fort wasn't catching this when linked specifically to OpenSSL < 3.

Thanks to Niklas Vogel for reporting this.
src/object/certificate.c