Fix POLICYINFO printing to not assume NUL terminated strings
authorMatt Caswell <matt@openssl.org>
Wed, 18 Aug 2021 11:31:38 +0000 (12:31 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 24 Aug 2021 12:18:31 +0000 (13:18 +0100)
commit5f54e57406ca17731b9ade3afd561d3c652e07f2
treed5d55429b5082c20f6250ab3126e39390cb57a9e
parent174ba8048a7f2f5e1fca31cfb93b1730d9db8300
Fix POLICYINFO printing to not assume NUL terminated strings

ASN.1 strings may not be NUL terminated. Don't assume they are.

CVE-2021-3712

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
crypto/x509v3/v3_cpols.c