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-03-19 14:34:07 +0100
commit43c564170c7300092fa1627b961480c708d6fc01 (patch)
treef3ae2371d6f27de1bda52a4d0a3e20e61e69f5c3 /e_os.h
parent497910833e6992b4b8645900f2086a56f5557424 (diff)
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