boringssl/crypto/x509v3
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
ext_dat.h
pcy_cache.c Split unlock functions into read/write variants. 2016-05-31 21:09:29 +00:00
pcy_data.c
pcy_int.h Fix up macros. 2016-10-18 18:28:23 +00:00
pcy_lib.c
pcy_map.c
pcy_node.c
pcy_tree.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
tab_test.c Remove some easy obj.h dependencies. 2016-03-31 20:50:33 +00:00
v3_akey.c
v3_akeya.c
v3_alt.c
v3_bcons.c
v3_bitst.c
v3_conf.c Fix an error path leak in do_ext_nconf() 2016-07-26 19:11:01 +00:00
v3_cpols.c Check for malloc failure in r2i_certpol. 2016-04-29 16:22:05 +00:00
v3_crld.c
v3_enum.c
v3_extku.c
v3_genn.c
v3_ia5.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
v3_info.c
v3_int.c
v3_lib.c
v3_ncons.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
v3_pci.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
v3_pcia.c
v3_pcons.c
v3_pku.c
v3_pmaps.c
v3_prn.c Remove ASN1_parse and ASN1_parse_dump. 2016-06-14 17:39:17 +00:00
v3_purp.c Fix x509v3_cache_extensions locking. 2016-12-05 23:12:49 +00:00
v3_skey.c
v3_sxnet.c
v3_utl.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
v3name_test.c Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00