]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix NULL pointer dereference in `asn1_ex_i2c()`, crypto/asn1/tasn_enc.c
authorAndrey Tsygunka <aitsygunka@yandex.ru>
Wed, 19 Mar 2025 11:53:02 +0000 (14:53 +0300)
committerTomas Mraz <tomas@openssl.org>
Tue, 25 Mar 2025 18:53:49 +0000 (19:53 +0100)
commit8e08f9c5a013d9a9fb9e2db3c90a70eda50f78b5
tree3716578b172db0cbc3d6ce98fb3d1190d91b0449
parent21f4bd986b7739f24f67270d533412065c7af0fc
Fix NULL pointer dereference in `asn1_ex_i2c()`, crypto/asn1/tasn_enc.c

Adds handling of V_ASN1_UNDEF to avoid NULL dereference
in case ASN1 structure contains an element of type ASN1_TYPE
without initializing its value (i.e. default constructed)

CLA: trivial

Signed-off-by: Andrey Tsygunka <aitsygunka@yandex.ru>
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27100)
crypto/asn1/tasn_enc.c