openssl/crypto/asn1
Richard Levitte 1727465471 ASN1: Ensure that d2i_ASN1_OBJECT() frees the strings on ASN1_OBJECT reuse
The 'sn' and 'ln' strings may be dynamically allocated, and the
ASN1_OBJECT flags have a bit set to say this.  If an ASN1_OBJECT with
such strings is passed to d2i_ASN1_OBJECT() for reuse, the strings
must be freed, or there is a memory leak.

Fixes #14667

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/14938)

(cherry picked from commit 65b88a7592)
2021-04-27 12:43:52 +02:00
..
a_bitstr.c Update copyright year 2021-04-08 13:04:41 +01:00
a_d2i_fp.c Update copyright year 2021-04-22 14:38:44 +01:00
a_digest.c asn1: fix indentation 2021-04-21 09:27:51 +10:00
a_dup.c Update copyright year 2021-04-22 14:38:44 +01:00
a_gentm.c Update copyright year 2021-04-08 13:04:41 +01:00
a_i2d_fp.c Update copyright year 2020-11-26 14:18:57 +00:00
a_int.c Add more negative checks for integers passed to OPENSSL_malloc(). 2021-04-16 12:10:08 +10:00
a_mbstr.c Add more negative checks for integers passed to OPENSSL_malloc(). 2021-04-16 12:10:08 +10:00
a_object.c ASN1: Ensure that d2i_ASN1_OBJECT() frees the strings on ASN1_OBJECT reuse 2021-04-27 12:43:52 +02:00
a_octet.c Following the license change, modify the boilerplates in crypto/asn1/ 2018-12-06 14:24:40 +01:00
a_print.c Reorganize private crypto header files 2019-09-28 20:26:34 +02:00
a_sign.c Add "origin" field to EVP_CIPHER, EVP_MD 2021-04-18 10:03:07 +02:00
a_strex.c Update copyright year 2021-03-11 13:27:36 +00:00
a_strnid.c Convert all {NAME}err() in crypto/ to their corresponding ERR_raise() call 2020-11-13 09:35:02 +01:00
a_time.c crypto: raise error on malloc failure 2021-04-14 09:31:49 +10:00
a_type.c Update copyright year 2021-04-08 13:04:41 +01:00
a_utctm.c Update copyright year 2021-04-08 13:04:41 +01:00
a_utf8.c ASN1: limit the Unicode code point range in UTF8_getc() and UTF8_putc() 2021-03-18 14:12:48 +10:00
a_verify.c Convert all {NAME}err() in crypto/ to their corresponding ERR_raise() call 2020-11-13 09:35:02 +01:00
ameth_lib.c Update copyright year 2021-04-22 14:38:44 +01:00
asn1_err.c Check for integer overflow in i2a_ASN1_OBJECT and error out if found. 2021-04-07 18:06:06 +10:00
asn1_gen.c CRYPTO: refactor ERR_raise()+ERR_add_error_data() to ERR_raise_data() 2020-11-13 09:35:31 +01:00
asn1_item_list.c Update copyright year 2020-11-26 14:18:57 +00:00
asn1_item_list.h Update copyright year 2021-01-28 13:54:57 +01:00
asn1_lib.c ASN.1: Add some sanity checks for input len <= 0; related coding improvements 2021-04-21 15:06:21 +02:00
asn1_local.h Update copyright year 2021-04-08 13:04:41 +01:00
asn1_par.c Update copyright year 2021-04-08 13:04:41 +01:00
asn_mime.c CRYPTO: refactor ERR_raise()+ERR_add_error_data() to ERR_raise_data() 2020-11-13 09:35:31 +01:00
asn_moid.c Convert all {NAME}err() in crypto/ to their corresponding ERR_raise() call 2020-11-13 09:35:02 +01:00
asn_mstbl.c CRYPTO: refactor ERR_raise()+ERR_add_error_data() to ERR_raise_data() 2020-11-13 09:35:31 +01:00
asn_pack.c Update copyright year 2020-11-26 14:18:57 +00:00
bio_asn1.c Update copyright year 2021-04-22 14:38:44 +01:00
bio_ndef.c Update copyright year 2021-03-11 13:27:36 +00:00
build.info Adapt libcrypto functionality to specify the desired output structure 2020-11-11 12:43:27 +01:00
charmap.h Update copyright years of auto-generated headers (make update) 2021-01-04 07:15:24 +01:00
charmap.pl Add a local perl module to get year last changed 2021-03-31 13:59:53 +02:00
d2i_param.c Convert all {NAME}err() in crypto/ to their corresponding ERR_raise() call 2020-11-13 09:35:02 +01:00
d2i_pr.c d2i_PrivateKey_decoder(): Fix premature exit on unsuccessful OSSL_DECODER_CTX_new_for_pkey() 2021-04-08 15:18:58 +02:00
d2i_pu.c Drop OPENSSL_NO_RSA everywhere 2020-12-20 12:19:42 +01:00
evp_asn1.c Update copyright year 2021-04-08 13:04:41 +01:00
f_int.c Update copyright year 2020-11-26 14:18:57 +00:00
f_string.c Update copyright year 2020-11-26 14:18:57 +00:00
i2d_evp.c crypto/asn1/i2d_evp.c: Fix i2d_provided() to return a proper length 2021-02-27 16:14:09 +01:00
n_pkey.c Update copyright year 2020-04-23 13:55:52 +01:00
nsseq.c Following the license change, modify the boilerplates in crypto/asn1/ 2018-12-06 14:24:40 +01:00
p5_pbe.c Update copyright year 2021-04-22 14:38:44 +01:00
p5_pbev2.c Update copyright year 2021-04-22 14:38:44 +01:00
p5_scrypt.c Update copyright year 2021-04-22 14:38:44 +01:00
p8_pkey.c Update copyright year 2020-04-23 13:55:52 +01:00
standard_methods.h Update copyright year 2021-04-08 13:04:41 +01:00
t_bitst.c Following the license change, modify the boilerplates in crypto/asn1/ 2018-12-06 14:24:40 +01:00
t_pkey.c Reorganize private crypto header files 2019-09-28 20:26:34 +02:00
t_spki.c Explicitly test against NULL; do not use !p or similar 2019-10-09 21:32:15 +02:00
tasn_dec.c ASN.1: Add some sanity checks for input len <= 0; related coding improvements 2021-04-21 15:06:21 +02:00
tasn_enc.c crypto: raise error on malloc failure 2021-04-14 09:31:49 +10:00
tasn_fre.c Update copyright year 2021-04-08 13:04:41 +01:00
tasn_new.c Update copyright year 2021-04-08 13:04:41 +01:00
tasn_prn.c Update copyright year 2021-04-08 13:04:41 +01:00
tasn_scn.c Update copyright year 2020-11-26 14:18:57 +00:00
tasn_typ.c constify *_dup() and *i2d_*() and related functions as far as possible, introducing DECLARE_ASN1_DUP_FUNCTION 2019-03-06 16:10:09 +00:00
tasn_utl.c Add more negative checks for integers passed to OPENSSL_malloc(). 2021-04-16 12:10:08 +10:00
tbl_standard.h Update copyright year 2020-10-15 14:10:06 +01:00
x_algor.c Update copyright year 2021-04-08 13:04:41 +01:00
x_bignum.c Explicitly test against NULL; do not use !p or similar 2019-10-09 21:32:15 +02:00
x_info.c Update copyright year 2020-11-26 14:18:57 +00:00
x_int64.c Update copyright year 2021-04-08 13:04:41 +01:00
x_long.c Convert all {NAME}err() in crypto/ to their corresponding ERR_raise() call 2020-11-13 09:35:02 +01:00
x_pkey.c Update copyright year 2020-11-26 14:18:57 +00:00
x_sig.c Reorganize private crypto header files 2019-09-28 20:26:34 +02:00
x_spki.c Following the license change, modify the boilerplates in crypto/asn1/ 2018-12-06 14:24:40 +01:00
x_val.c Following the license change, modify the boilerplates in crypto/asn1/ 2018-12-06 14:24:40 +01:00