openssl/crypto/asn1
Kurt Roeckx 1618679ac4 Cast to an unsigned type before negating
llvm's ubsan reported:
runtime error: negation of -9223372036854775808 cannot be represented in type
'long'; cast to an unsigned type to negate this value to itself

Found using afl

Reviewed-by: Rich Salz <rsalz@openssl.org>
GH: #1325
2016-07-20 19:25:16 +02:00
..
a_bitstr.c Avoid calling memcpy with lenght of 0 2016-05-27 21:01:12 +02:00
a_d2i_fp.c Check for overflows in EOC. 2016-06-04 13:54:49 +01:00
a_digest.c Copyright consolidation 08/10 2016-05-17 14:51:34 -04:00
a_dup.c Copyright consolidation 08/10 2016-05-17 14:51:34 -04:00
a_gentm.c Don't leak memory on ASN1_GENERALIZEDTIME_adj() error path 2016-06-01 18:00:53 +01:00
a_i2d_fp.c Copyright consolidation 08/10 2016-05-17 14:51:34 -04:00
a_int.c Avoid creating an illegal pointer. 2016-06-21 20:55:54 +02:00
a_mbstr.c Copyright consolidation 08/10 2016-05-17 14:51:34 -04:00
a_object.c Copyright consolidation 08/10 2016-05-17 14:51:34 -04:00
a_octet.c Copyright consolidation 08/10 2016-05-17 14:51:34 -04:00
a_print.c Copyright consolidation 08/10 2016-05-17 14:51:34 -04:00
a_sign.c Copyright consolidation 08/10 2016-05-17 14:51:34 -04:00
a_strex.c Add nameConstraints commonName checking. 2016-07-11 23:30:04 +01:00
a_strnid.c Add more zalloc 2016-05-29 01:36:11 +02:00
a_time.c Copyright consolidation 08/10 2016-05-17 14:51:34 -04:00
a_type.c Copyright consolidation 08/10 2016-05-17 14:51:34 -04:00
a_utctm.c Copyright consolidation 08/10 2016-05-17 14:51:34 -04:00
a_utf8.c Copyright consolidation 08/10 2016-05-17 14:51:34 -04:00
a_verify.c Copyright consolidation 08/10 2016-05-17 14:51:34 -04:00
ameth_lib.c Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
asn1_err.c Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
asn1_gen.c Constify ASN1_generate_nconf 2016-06-04 21:30:41 -04:00
asn1_lib.c Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
asn1_locl.h Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
asn1_par.c Whitespace cleanup in crypto 2016-06-29 09:56:39 -04:00
asn_mime.c Add checks on sk_TYPE_push() returned value 2016-07-05 17:45:50 +01:00
asn_moid.c Constify some input buffers in asn1 2016-06-15 13:22:38 -04:00
asn_mstbl.c Constify some input buffers in asn1 2016-06-15 13:22:38 -04:00
asn_pack.c Don't leak memory on ASN1_item_pack() error path 2016-06-01 18:00:53 +01:00
bio_asn1.c Add more zalloc 2016-05-29 01:36:11 +02:00
bio_ndef.c Add more zalloc 2016-05-29 01:36:11 +02:00
build.info move x_pubkey.c to crypto/x509 2016-03-22 15:28:11 +00:00
charmap.h Add nameConstraints commonName checking. 2016-07-11 23:30:04 +01:00
charmap.pl Add nameConstraints commonName checking. 2016-07-11 23:30:04 +01:00
d2i_pr.c Copyright consolidation 08/10 2016-05-17 14:51:34 -04:00
d2i_pu.c Copyright consolidation 08/10 2016-05-17 14:51:34 -04:00
evp_asn1.c Copyright consolidation 06/10 2016-05-17 14:51:04 -04:00
f_int.c Free buffer on error in a2i_ASN1_INTEGER() 2016-06-01 18:00:53 +01:00
f_string.c Free memory on an error path 2016-06-14 11:45:34 +01:00
i2d_pr.c Copyright consolidation 08/10 2016-05-17 14:51:34 -04:00
i2d_pu.c Copyright consolidation 08/10 2016-05-17 14:51:34 -04:00
n_pkey.c Copyright consolidation 08/10 2016-05-17 14:51:34 -04:00
nsseq.c Copyright consolidation 08/10 2016-05-17 14:51:34 -04:00
p5_pbe.c Copyright consolidation 08/10 2016-05-17 14:51:34 -04:00
p5_pbev2.c Copyright consolidation 08/10 2016-05-17 14:51:34 -04:00
p5_scrypt.c Copyright consolidation 08/10 2016-05-17 14:51:34 -04:00
p8_pkey.c Copyright consolidation 08/10 2016-05-17 14:51:34 -04:00
t_bitst.c Constify some input buffers in asn1 2016-06-15 13:22:38 -04:00
t_pkey.c Spelling... and more spelling 2016-06-22 00:26:10 +02:00
t_spki.c Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
tasn_dec.c Don't indicate errors during initial adb decode. 2016-07-06 02:41:14 +01:00
tasn_enc.c Copyright consolidation 08/10 2016-05-17 14:51:34 -04:00
tasn_fre.c Rework error handling from asn1_do_lock method. 2016-06-23 14:00:47 +01:00
tasn_new.c Rework error handling from asn1_do_lock method. 2016-06-23 14:00:47 +01:00
tasn_prn.c Check and print out boolean type properly. 2016-07-19 02:33:05 +01:00
tasn_scn.c Add more zalloc 2016-05-29 01:36:11 +02:00
tasn_typ.c Copyright consolidation 08/10 2016-05-17 14:51:34 -04:00
tasn_utl.c Rework error handling from asn1_do_lock method. 2016-06-23 14:00:47 +01:00
x_algor.c Copyright consolidation 08/10 2016-05-17 14:51:34 -04:00
x_bignum.c Fix print of ASN.1 BIGNUM type. 2016-07-18 17:53:05 +01:00
x_info.c Copyright consolidation 08/10 2016-05-17 14:51:34 -04:00
x_long.c Cast to an unsigned type before negating 2016-07-20 19:25:16 +02:00
x_pkey.c Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
x_sig.c Copyright consolidation 08/10 2016-05-17 14:51:34 -04:00
x_spki.c Copyright consolidation 08/10 2016-05-17 14:51:34 -04:00
x_val.c Copyright consolidation 08/10 2016-05-17 14:51:34 -04:00