mirror of
https://github.com/openssl/openssl.git
synced 2026-01-18 17:11:31 +01:00
Due to an out of memory error, the i2d_ASN1_TYPE might fail and cause a segfault. This adds a missing check for NULL pointer and a test case that exercises IMPLICIT and EXPLICT tagging in generate_v3, since there was no test coverage at all for this code section. Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Paul Dale <paul.dale@oracle.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> MergeDate: Thu Jan 8 10:13:43 2026 (Merged from https://github.com/openssl/openssl/pull/29545)
6 lines
81 B
INI
6 lines
81 B
INI
asn1=SEQUENCE:seq
|
|
|
|
[seq]
|
|
impl=IMPLICIT:1,BOOL:true
|
|
expl=EXPLICIT:2,BITWRAP,OCT:X
|