openssl/crypto/x509v3
Pavel Kopyl abcf241114 X509V3_EXT_add_nconf_sk, X509v3_add_ext: fix errors handling
X509v3_add_ext: free 'sk' if the memory pointed to by it
was malloc-ed inside this function.
X509V3_EXT_add_nconf_sk: return an error if X509v3_add_ext() fails.
This prevents use of a freed memory in do_body:sk_X509_EXTENSION_num().

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4698)
2018-02-21 12:18:48 +00:00
..
build.info Declare a new x509v3 extension: x509ExtAdmission 2017-06-20 09:25:30 -04:00
ext_dat.h Declare a new x509v3 extension: x509ExtAdmission 2017-06-20 09:25:30 -04:00
pcy_cache.c Fix threading issue that at best will leak memory 2016-06-03 12:08:13 -04:00
pcy_data.c CLA: trivial 2017-05-31 08:56:03 -04:00
pcy_int.h Copyright consolidation 07/10 2016-05-17 14:51:26 -04:00
pcy_lib.c Copyright consolidation 07/10 2016-05-17 14:51:26 -04:00
pcy_map.c Copyright consolidation 07/10 2016-05-17 14:51:26 -04:00
pcy_node.c Copyright consolidation 07/10 2016-05-17 14:51:26 -04:00
pcy_tree.c Avoid possible memleak in X509_policy_check() 2017-07-05 11:14:07 +02:00
standard_exts.h Declare a new x509v3 extension: x509ExtAdmission 2017-06-20 09:25:30 -04:00
v3_addr.c Avoid out-of-bounds read 2017-08-28 13:26:26 -04:00
v3_admis.c Update copyright year 2018-02-13 13:59:25 +00:00
v3_admis.h Update copyright year 2018-02-13 13:59:25 +00:00
v3_akey.c Don't leak memory in v2i_AUTHORITY_KEYID 2016-06-01 18:00:53 +01:00
v3_akeya.c Copyright consolidation 07/10 2016-05-17 14:51:26 -04:00
v3_alt.c remove magic number 2017-11-13 07:52:35 -05:00
v3_asid.c Make sure we check the return value of extract_min_max() 2018-02-14 15:32:06 +00:00
v3_bcons.c Copyright consolidation 07/10 2016-05-17 14:51:26 -04:00
v3_bitst.c Copyright consolidation 07/10 2016-05-17 14:51:26 -04:00
v3_conf.c X509V3_EXT_add_nconf_sk, X509v3_add_ext: fix errors handling 2018-02-21 12:18:48 +00:00
v3_cpols.c Simplify the stack reservation 2017-10-26 14:34:35 -04:00
v3_crld.c Simplify the stack reservation 2017-10-26 14:34:35 -04:00
v3_enum.c Remove trailing whitespace from some files. 2016-10-10 23:36:21 +01:00
v3_extku.c Simplify the stack reservation 2017-10-26 14:34:35 -04:00
v3_genn.c Fix memory leak in GENERAL_NAME_set0_othername. 2017-10-23 17:46:02 +02:00
v3_ia5.c Specify array sizes 2016-06-11 16:43:49 +02:00
v3_info.c Consistent formatting for sizeof(foo) 2017-12-07 19:11:49 -05:00
v3_int.c Constify input buffers of some X509V3 and X509_PURPOSE -related methods 2016-06-15 13:22:38 -04:00
v3_lib.c Fix possible leaks on sk_X509_EXTENSION_push() failure ... 2017-11-10 09:45:17 +01:00
v3_ncons.c Don't use strcasecmp and strncasecmp for IA5 strings 2017-10-26 14:43:57 +01:00
v3_pci.c Standardize Levitte's dual-license 2017-06-15 14:16:16 -04:00
v3_pcia.c Standardize Levitte's dual-license 2017-06-15 14:16:16 -04:00
v3_pcons.c Copyright consolidation 07/10 2016-05-17 14:51:26 -04:00
v3_pku.c Remove some commented out code in libcrypto 2017-02-28 16:02:11 +00:00
v3_pmaps.c Simplify the stack reservation 2017-10-26 14:34:35 -04:00
v3_prn.c Convert X509_CRL* functions to use const getters 2016-08-17 13:38:03 +01:00
v3_purp.c Add X509_get0_authority_key_id() function 2018-02-19 15:47:02 -05:00
v3_skey.c Remove trailing whitespace from some files. 2016-10-10 23:36:21 +01:00
v3_sxnet.c Constify SXNET_add_id_* 2016-07-25 08:20:00 -04:00
v3_tlsf.c Move e_os.h to be the very first include. 2017-08-30 07:20:44 +10:00
v3_utl.c Pretty-print large INTEGERs and ENUMERATEDs in hex. 2017-11-25 09:23:34 -05:00
v3err.c Pretty-print large INTEGERs and ENUMERATEDs in hex. 2017-11-25 09:23:34 -05:00