]> 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:54:07 +0000 (19:54 +0100)
commit5782f0892011d3412771a8385c4a347f34425b8c
tree58b31c341df9c4a6913d744d24a1a46c3ba210f8
parent286232311647ab5b6350c11c5cb1f1fa1cfa9a39
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)

(cherry picked from commit 8e08f9c5a013d9a9fb9e2db3c90a70eda50f78b5)
crypto/asn1/tasn_enc.c