boringssl/crypto/evp
David Benjamin 17cf2cb1d2 Work around language and compiler bug in memcpy, etc.
Most C standard library functions are undefined if passed NULL, even
when the corresponding length is zero. This gives them (and, in turn,
all functions which call them) surprising behavior on empty arrays.
Some compilers will miscompile code due to this rule. See also
https://www.imperialviolet.org/2016/06/26/nonnull.html

Add OPENSSL_memcpy, etc., wrappers which avoid this problem.

BUG=23

Change-Id: I95f42b23e92945af0e681264fffaf578e7f8465e
Reviewed-on: https://boringssl-review.googlesource.com/12928
Commit-Queue: David Benjamin <davidben@google.com>
Reviewed-by: Adam Langley <agl@google.com>
2016-12-21 20:34:47 +00:00
..
CMakeLists.txt Pull EVP_PKEY print hooks out of the main method table. 2016-02-26 22:40:44 +00:00
digestsign.c Don't default to SHA-1 in |EVP_DigestSignInit|/|EVP_DigestVerifyInit|. 2015-10-26 21:26:51 +00:00
evp_asn1.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
evp_ctx.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
evp_extra_test.cc Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
evp_test.cc Check input length to pkey_rsa_verify and add initial tests. 2016-12-16 17:16:57 +00:00
evp_tests.txt Check input length to pkey_rsa_verify and add initial tests. 2016-12-16 17:16:57 +00:00
evp.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
internal.h Decouple crypto/evp from the OID table. 2016-03-31 22:12:46 +00:00
p_dsa_asn1.c Decouple crypto/evp from the OID table. 2016-03-31 22:12:46 +00:00
p_ec_asn1.c Fix memory leak on invalid ecPublicKey parameters. 2016-04-15 19:43:26 +00:00
p_ec.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
p_rsa_asn1.c Decouple crypto/evp from the OID table. 2016-03-31 22:12:46 +00:00
p_rsa.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
pbkdf_test.cc Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
pbkdf.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
print.c Use C99 for size_t loops. 2016-09-12 19:44:24 +00:00
sign.c