boringssl/tool
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
..
args.cc Revert "Move C++ helpers into |bssl| namespace." 2016-07-12 08:09:33 -07:00
ciphers.cc Replace Scoped* heap types with bssl::UniquePtr. 2016-09-01 22:22:54 +00:00
client.cc Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
CMakeLists.txt Add a tool to generate Ed25519 keys. 2015-12-18 23:34:13 +00:00
const.cc Revert "Move C++ helpers into |bssl| namespace." 2016-07-12 08:09:33 -07:00
digest.cc Correctness fixes for NaCl and other platforms. 2016-11-09 19:06:10 +00:00
generate_ed25519.cc Replace Scoped* heap types with bssl::UniquePtr. 2016-09-01 22:22:54 +00:00
genrsa.cc Replace Scoped* heap types with bssl::UniquePtr. 2016-09-01 22:22:54 +00:00
internal.h Revert "Move C++ helpers into |bssl| namespace." 2016-07-12 08:09:33 -07:00
pkcs12.cc Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
rand.cc Correctness fixes for NaCl and other platforms. 2016-11-09 19:06:10 +00:00
server.cc Adding new options for bssl tool. 2016-12-15 16:49:08 +00:00
speed.cc Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
tool.cc Revert "Move C++ helpers into |bssl| namespace." 2016-07-12 08:09:33 -07:00
transport_common.cc Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
transport_common.h Teach bssl server about -max-version and -min-version. 2016-07-17 08:18:58 +00:00