openssl/crypto
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
..
aes Fix a few if(, for(, while( inside code. 2016-07-20 07:21:53 -04:00
asn1 Cast to an unsigned type before negating 2016-07-20 19:25:16 +02:00
async Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
bf
bio Cast to an unsigned type before negating 2016-07-20 19:25:16 +02:00
blake2
bn Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
buffer Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
camellia Missed some copyright merge 2016-06-13 16:05:25 -04:00
cast
chacha
cmac
cms Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
comp Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
conf Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
ct Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
des SPARC assembly pack: enforce V8+ ABI constraints. 2016-07-01 14:25:08 +02:00
dh Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
dsa Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
dso Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
ec Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
engine Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
err Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
evp Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
hmac Teach EVP_PKEY_HMAC keys how to EVP_PKEY_cmp() 2016-06-24 12:31:31 -04:00
idea
include/internal Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
kdf Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
lhash fix code formatting 2016-07-01 10:56:19 -04:00
md2 Convert memset calls to OPENSSL_cleanse 2016-06-30 15:51:57 +01:00
md4
md5
mdc2
modes SPARC assembly pack: enforce V8+ ABI constraints. 2016-07-01 14:25:08 +02:00
objects Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
ocsp Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
pem Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
perlasm crypto/x86[_64]cpuid.pl: add OPENSSL_ia32_rd[rand|seed]_bytes. 2016-07-15 13:20:52 +02:00
pkcs7 Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
pkcs12 Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
poly1305 SPARC assembly pack: enforce V8+ ABI constraints. 2016-07-01 14:25:38 +02:00
rand Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
rc2
rc4
rc5
ripemd
rsa Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
seed
sha
srp check return values for EVP_Digest*() APIs 2016-07-15 14:09:05 +01:00
stack Constify a bit more OPENSSL_sk_ API 2016-06-30 12:58:21 -04:00
ts Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
txt_db
ui Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
whrlpool Convert memset calls to OPENSSL_cleanse 2016-06-30 15:51:57 +01:00
x509 Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
x509v3 Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
alphacpuid.pl
arm64cpuid.pl
arm_arch.h
armcap.c
armv4cpuid.pl
build.info Move OS-specific fopen quirks to o_fopen.c. 2016-06-22 21:51:53 +02:00
c64xpluscpuid.pl
cpt_err.c Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
cryptlib.c crypto/cryptlib.c: omit OPENSSL_ia32cap_loc(). 2016-06-22 20:20:37 +02:00
cversion.c
dllmain.c
ebcdic.c
ex_data.c Change all our uses of CRYPTO_THREAD_run_once to use RUN_ONCE instead 2016-07-19 23:49:54 +02:00
ia64cpuid.S
init.c Check for errors allocating the error strings. 2016-07-20 19:20:53 +02:00
LPdir_nyi.c Remove the silly CVS markers from LPdir_*.c 2016-07-16 07:58:23 +02:00
LPdir_unix.c Remove the silly CVS markers from LPdir_*.c 2016-07-16 07:58:23 +02:00
LPdir_vms.c
LPdir_win32.c Remove the silly CVS markers from LPdir_*.c 2016-07-16 07:58:23 +02:00
LPdir_win.c Fix mingw build 2016-07-18 10:47:07 +01:00
LPdir_wince.c Remove the silly CVS markers from LPdir_*.c 2016-07-16 07:58:23 +02:00
mem_clr.c
mem_dbg.c fix crypto-mdebug build 2016-07-20 12:41:31 +01:00
mem_sec.c
mem.c Convert memset calls to OPENSSL_cleanse 2016-06-30 15:51:57 +01:00
o_dir.c
o_fips.c
o_fopen.c Fix a few if(, for(, while( inside code. 2016-07-20 07:21:53 -04:00
o_init.c
o_str.c buf2hexstr: properly deal with empty string 2016-06-21 20:55:54 +02:00
o_time.c
pariscid.pl
ppc_arch.h
ppccap.c
ppccpuid.pl
s390xcap.c
s390xcpuid.S
sparc_arch.h
sparccpuid.S
sparcv9cap.c
threads_none.c
threads_pthread.c
threads_win.c include/openssl: don't include <windows.h> in public headers. 2016-07-08 11:49:44 +02:00
uid.c
vms_rms.h
x86_64cpuid.pl crypto/x86[_64]cpuid.pl: add OPENSSL_ia32_rd[rand|seed]_bytes. 2016-07-15 13:20:52 +02:00
x86cpuid.pl crypto/x86[_64]cpuid.pl: add OPENSSL_ia32_rd[rand|seed]_bytes. 2016-07-15 13:20:52 +02:00