From 02b9329f2b10c24480aedb39b843dfb1611a8190 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Fri, 1 Jun 2018 14:38:45 +0200 Subject: [PATCH] Fix MSan build without MBEDTLS_TIMING_C When MBEDTLS_TIMING_C was not defined in config.h, but the MemSan memory sanitizer was activated, entropy_poll.c used memset without declaring it. Fix this by including string.h unconditionally. --- library/entropy_poll.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/entropy_poll.c b/library/entropy_poll.c index a116e605d..75e243ac8 100644 --- a/library/entropy_poll.c +++ b/library/entropy_poll.c @@ -25,13 +25,14 @@ #include MBEDTLS_CONFIG_FILE #endif +#include + #if defined(MBEDTLS_ENTROPY_C) #include "mbedtls/entropy.h" #include "mbedtls/entropy_poll.h" #if defined(MBEDTLS_TIMING_C) -#include #include "mbedtls/timing.h" #endif #if defined(MBEDTLS_HAVEGE_C)