]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix pretty-printing empty serial number in ossl_serial_number_print()
authorKazuki Yamaguchi <k@rhe.jp>
Sat, 25 Jan 2025 08:31:16 +0000 (17:31 +0900)
committerTomas Mraz <tomas@openssl.org>
Tue, 28 Jan 2025 20:06:51 +0000 (21:06 +0100)
commit6f1dbaf7d2a5de5656ff243e5c570bc8da0ad423
treebab73b350680ba10d80c74b89a64e484244ef877
parent93d366bea6b8175a9565501be992f41858ad44f3
Fix pretty-printing empty serial number in ossl_serial_number_print()

Fix a crash when the ASN1_INTEGER has empty content. While it is
illegal, this is the initial state of the serialNumber field when an
X509 object is allocated by X509_new(). X509_print*() should be able to
process an incomplete X509 object too.

Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26557)
crypto/x509/t_x509.c