boringssl/ssl
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
..
test Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
CMakeLists.txt Add TLS 1.3 1-RTT. 2016-07-18 09:54:46 +00:00
custom_extensions.c Pass explicit hs parameters into custom_extensions.c. 2016-12-06 19:49:36 +00:00
d1_both.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
d1_lib.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
d1_pkt.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
d1_srtp.c Fix ssl_ctx_make_profiles error handling. 2016-09-27 13:27:06 +00:00
dtls_method.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
dtls_record.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
handshake_client.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
handshake_server.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
internal.h Splitting handshake traffic derivation from key change. 2016-12-16 20:29:23 +00:00
s3_both.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
s3_enc.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
s3_lib.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
s3_pkt.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
ssl_aead_ctx.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
ssl_asn1.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
ssl_buffer.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
ssl_cert.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
ssl_cipher.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
ssl_ecdh.c Remove New Hope key agreement. 2016-12-10 01:06:31 +00:00
ssl_file.c Check for sk_X509_NAME_push failures. 2016-09-27 13:18:37 +00:00
ssl_lib.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
ssl_rsa.c Rename X.509 members in |SSL_SESSION| and |CERT|. 2016-11-09 20:07:57 +00:00
ssl_session.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
ssl_stat.c Move state and next_state to SSL_HANDSHAKE. 2016-12-12 22:09:01 +00:00
ssl_test.cc Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
t1_enc.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
t1_lib.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
tls13_both.c Make TLS 1.3 check ECDSA KeyUsage and add test. 2016-12-14 17:56:55 +00:00
tls13_client.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
tls13_enc.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
tls13_server.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
tls_method.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
tls_record.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00