Commit 3aad8e18 authored by Kurt Roeckx's avatar Kurt Roeckx
Browse files

Use memcmp() instead of CRYPTO_memcmp() when fuzzing



Reviewed-by: default avatarAndy Polyakov <appro@openssl.org>
GH: #2633
parent 0837bd86
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -324,6 +324,7 @@ void OPENSSL_die(const char *message, const char *file, int line)
 * pointers to volatile to not be emitted in some rare,
 * never needed in real life, pieces of code.
 */
# undef CRYPTO_memcmp
int CRYPTO_memcmp(const volatile void * volatile in_a,
                  const volatile void * volatile in_b,
                  size_t len)
+4 −0
Original line number Diff line number Diff line
@@ -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