]> git.ipfire.org Git - thirdparty/openssl.git/commit
ossl_print_attribute_value(): use a sequence value only if type is a sequence
authorTomas Mraz <tomas@openssl.org>
Mon, 5 Aug 2024 14:51:56 +0000 (16:51 +0200)
committerTomas Mraz <tomas@openssl.org>
Wed, 7 Aug 2024 17:43:34 +0000 (19:43 +0200)
commit7bcfb41489903543546d25ec13f8c58f36a147b3
tree2c856e408c03b41fc0e1a8ebffdac3ee22d7be4b
parent217e215e99dd526ad2e6f83601449742d1d03d6a
ossl_print_attribute_value(): use a sequence value only if type is a sequence

Move the switch to print a distinguished name inside the
switch by the printed attribute type, otherwise a malformed
attribute will cause a crash.

Updated the fuzz corpora with the testcase

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
(Merged from https://github.com/openssl/openssl/pull/25087)
crypto/x509/x_attrib.c
fuzz/corpora