openssl/crypto/x509v3
Matt Caswell 7bb50cbc4a Don't leak memory in the event of a failure in i2v_GENERAL_NAMES
i2v_GENERAL_NAMES call i2v_GENERAL_NAME repeatedly as required. Each
time i2v_GENERAL_NAME gets called it allocates adds data to the passed in
stack and then returns a pointer to the stack, or NULL on failure. If
the passed in stack is itself NULL then it allocates one.

i2v_GENERAL_NAMES was not correctly handling the case where a NULL gets
returned from i2v_GENERAL_NAME. If a stack had already been allocated then
it just leaked it.

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10300)

(cherry picked from commit 45b244620a74248b46ebe1c85e86437b9641447a)
2019-11-04 12:54:36 +00:00
..
build.info
ext_dat.h
pcy_cache.c Reorganize local header files 2019-09-27 23:58:06 +02:00
pcy_data.c Reorganize local header files 2019-09-27 23:58:06 +02:00
pcy_lib.c Reorganize local header files 2019-09-27 23:58:06 +02:00
pcy_local.h Reorganize local header files 2019-09-27 23:58:06 +02:00
pcy_map.c Reorganize local header files 2019-09-27 23:58:06 +02:00
pcy_node.c Reorganize local header files 2019-09-27 23:58:06 +02:00
pcy_tree.c Reorganize local header files 2019-09-27 23:58:06 +02:00
standard_exts.h
v3_addr.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
v3_admis.c Update copyright year 2018-02-13 13:59:25 +00:00
v3_admis.h Fix header file include guard names 2019-09-27 23:58:12 +02:00
v3_akey.c
v3_akeya.c
v3_alt.c Don't leak memory in the event of a failure in i2v_GENERAL_NAMES 2019-11-04 12:54:36 +00:00
v3_asid.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
v3_bcons.c
v3_bitst.c
v3_conf.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
v3_cpols.c Reorganize local header files 2019-09-27 23:58:06 +02:00
v3_crld.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
v3_enum.c
v3_extku.c
v3_genn.c Update copyright year 2019-05-28 14:49:38 +02:00
v3_ia5.c
v3_info.c Consistent formatting for sizeof(foo) 2017-12-07 19:11:49 -05:00
v3_int.c
v3_lib.c Update copyright year 2018-09-11 13:45:17 +01:00
v3_ncons.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
v3_pci.c
v3_pcia.c
v3_pcons.c
v3_pku.c
v3_pmaps.c
v3_prn.c
v3_purp.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
v3_skey.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
v3_sxnet.c
v3_tlsf.c Update copyright year 2018-09-11 13:45:17 +01:00
v3_utl.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
v3err.c Add missing error code when alloc-return-null 2018-04-26 12:27:46 -04:00