summaryrefslogtreecommitdiffstats
path: root/e_os.h
diff options
context:
space:
mode:
authorKurt Roeckx <kurt@roeckx.be>2017-02-15 00:36:46 +0100
committerKurt Roeckx <kurt@roeckx.be>2017-02-19 14:00:13 +0100
commit3aad8e18707bccaabee5f111de2db0696b45781c (patch)
treee7c24a0762858d31750d1615576dd9120e5e0228 /e_os.h
parentInternal siphash tests are not run. (diff)
downloadopenssl-3aad8e18707bccaabee5f111de2db0696b45781c.tar.xz
openssl-3aad8e18707bccaabee5f111de2db0696b45781c.zip
Use memcmp() instead of CRYPTO_memcmp() when fuzzing
Reviewed-by: Andy Polyakov <appro@openssl.org> GH: #2633
Diffstat (limited to 'e_os.h')
-rw-r--r--e_os.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/e_os.h b/e_os.h
index eafa8623aa..d2f4d3ff28 100644
--- a/e_os.h
+++ b/e_os.h
@@ -513,6 +513,10 @@ struct servent *getservbyname(const char *name, const char *proto);
#define OSSL_NELEM(x) (sizeof(x)/sizeof(x[0]))
+#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
+# define CRYPTO_memcmp memcmp
+#endif
+
#ifdef __cplusplus
}
#endif