mbedtls/library
Janos Follath b6998f7f51 ECP: Prevent freeing a buffer on stack
The function ecp_mod_koblitz computed the space for the result of a
multiplication optimally for that specific case, but unfortunately
the function mbedtls_mpi_mul_mpi performs a generic, suboptimal
calculation and needs one more limb for the result. Since the result's
buffer is on the stack, the best case scenario is that the program
stops.

This only happened on 64 bit platforms.

Fixes #569
2017-02-28 18:54:24 +00:00
..
.gitignore
aes.c Fix unused variable in AES selftest when CBC and CFB disabled (#393) 2016-06-22 16:48:16 +01:00
aesni.c Fix build errors on x32 by using the generic 'add' instruction 2016-05-23 14:29:28 +01:00
arc4.c Adds casts to zeroize functions to allow building as C++ 2016-05-23 14:29:32 +01:00
asn1parse.c Fix 1 byte overread in mbedtls_asn1_get_int() 2016-10-13 13:54:14 +01:00
asn1write.c Add mbedtls_asn1_write_len() support for 3 and 4 byte lengths 2016-08-25 15:42:27 +01:00
base64.c Add comment to integer overflow fix in base64.c 2017-02-02 08:46:53 +00:00
bignum.c Adds additional casts to calloc calls 2016-05-23 14:29:33 +01:00
blowfish.c Adds casts to zeroize functions to allow building as C++ 2016-05-23 14:29:32 +01:00
camellia.c Address user reported coverity issues. 2016-06-07 14:52:35 +01:00
ccm.c Adds casts to zeroize functions to allow building as C++ 2016-05-23 14:29:32 +01:00
certs.c
cipher_wrap.c
cipher.c Fix integer overflows in buffer bound checks 2017-01-17 23:04:22 +00:00
cmac.c Update CMAC test vectors. 2016-12-13 16:00:52 +00:00
CMakeLists.txt Update library version number to 2.4.1 2016-12-13 16:00:52 +00:00
ctr_drbg.c Fix integer overflows in buffer bound checks 2017-01-17 23:04:22 +00:00
debug.c Fix compiler warning in debug.c 2016-11-17 09:22:46 +00:00
des.c Adds casts to zeroize functions to allow building as C++ 2016-05-23 14:29:32 +01:00
dhm.c Corrected references for RSA and DHM 2016-01-20 00:44:42 +00:00
ecdh.c
ecdsa.c
ecjpake.c
ecp_curves.c ECP: Prevent freeing a buffer on stack 2017-02-28 18:54:24 +00:00
ecp.c Address user reported coverity issues. 2016-06-07 14:52:35 +01:00
entropy_poll.c Renames null entropy source function for clarity 2016-06-12 00:31:33 +01:00
entropy.c Fix unused variable warnings for null entropy config 2016-09-15 18:57:34 +01:00
error.c Merge fix for IE Certificate Compatibility 2016-10-13 17:21:01 +01:00
gcm.c Fix documentation for mbedtls_gcm_finish() 2016-10-13 13:54:47 +01:00
havege.c Fixes warnings found by Clang static analyser 2016-05-23 23:18:26 +01:00
hmac_drbg.c
Makefile Added cmac.o to libary/Makefile 2016-10-13 13:51:09 +01:00
md2.c Fix integer overflows in buffer bound checks 2017-01-17 23:04:22 +00:00
md4.c
md5.c
md_wrap.c
md.c
memory_buffer_alloc.c Fixes memory leak in memory_buffer_alloc.c debug 2016-05-23 14:29:29 +01:00
net_sockets.c Fix formatting issues in net_sockets.c 2016-11-17 09:22:47 +00:00
oid.c Removing in compile time unused entries from oid_ecp_grp list 2016-09-04 15:14:38 +01:00
padlock.c
pem.c Merge branch 'development' 2017-02-04 22:54:22 +00:00
pk_wrap.c Fix data loss in unsigned int cast in PK 2017-02-15 10:52:11 +00:00
pk.c Fix data loss in unsigned int cast in PK 2017-02-15 10:52:11 +00:00
pkcs5.c Fix output of PKCS#5 and RIPEMD-160 self tests 2016-08-25 16:36:35 +01:00
pkcs11.c
pkcs12.c Shut up a few clang-analyze warnings about use of uninitialized variables 2016-05-23 14:29:28 +01:00
pkparse.c Clarify Comments and Fix Typos (#651) 2016-11-06 12:45:15 +00:00
pkwrite.c
platform.c Fix various compiler warnings with MSVC 2016-11-10 15:37:33 +00:00
ripemd160.c Fix output of PKCS#5 and RIPEMD-160 self tests 2016-08-25 16:36:35 +01:00
rsa.c Restore P>Q in RSA key generation (#558) 2016-10-13 13:54:48 +01:00
sha1.c Adds casts to zeroize functions to allow building as C++ 2016-05-23 14:29:32 +01:00
sha256.c Use allocated memory for SHA self tests 2016-10-13 15:10:14 +01:00
sha512.c Use allocated memory for SHA self tests 2016-10-13 15:10:14 +01:00
ssl_cache.c Puts platform time abstraction into its own header 2016-07-13 14:46:18 +01:00
ssl_ciphersuites.c Puts platform time abstraction into its own header 2016-07-13 14:46:18 +01:00
ssl_cli.c Merge fix for IE Certificate Compatibility 2016-10-13 17:21:01 +01:00
ssl_cookie.c Puts platform time abstraction into its own header 2016-07-13 14:46:18 +01:00
ssl_srv.c Merge fix for IE Certificate Compatibility 2016-10-13 17:21:01 +01:00
ssl_ticket.c Puts platform time abstraction into its own header 2016-07-13 14:46:18 +01:00
ssl_tls.c Merge 'development-restricted' 2017-02-05 20:13:05 +00:00
threading.c Add safety check to sample mutex implementation 2016-10-13 13:51:07 +01:00
timing.c Give better error messages for semi-portable parts 2016-02-22 10:47:32 +01:00
version_features.c Merge fix for AEAD Random IVs 2016-10-14 00:48:33 +01:00
version.c
x509_create.c
x509_crl.c Fix memory leak in mbedtls_x509_crl_parse() 2017-02-28 14:57:11 +00:00
x509_crt.c Merge branch 'iotssl-1071-ca-flags' 2017-02-27 19:32:03 +00:00
x509_csr.c Fix unused variable/function compilation warnings 2016-12-07 16:15:32 +00:00
x509.c Fix buffer overread in mbedtls_x509_get_time() 2017-02-28 12:05:44 +00:00
x509write_crt.c Add missing bounds check in X509 DER write funcs 2016-10-11 14:07:48 +01:00
x509write_csr.c Add missing bounds check in X509 DER write funcs 2016-10-11 14:07:48 +01:00
xtea.c