Add a test for CVE-2022-4450
authorMatt Caswell <matt@openssl.org>
Tue, 13 Dec 2022 15:02:26 +0000 (15:02 +0000)
committerRichard Levitte <levitte@openssl.org>
Fri, 3 Feb 2023 10:22:47 +0000 (11:22 +0100)
commit2bd611267868a008afa576846ba71566bd0d4d15
treef4a0712674e64de832d6a200cb8c6e343c949692
parentbbcf509bd046b34cca19c766bbddc31683d0858b
Add a test for CVE-2022-4450

Call PEM_read_bio_ex() and expect a failure. There should be no dangling
ptrs and therefore there should be no double free if we free the ptrs on
error.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
test/pemtest.c