mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	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.
This commit is contained in:
		
							parent
							
								
									32605dc830
								
							
						
					
					
						commit
						02b9329f2b
					
				@ -25,13 +25,14 @@
 | 
			
		||||
#include MBEDTLS_CONFIG_FILE
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include <string.h>
 | 
			
		||||
 | 
			
		||||
#if defined(MBEDTLS_ENTROPY_C)
 | 
			
		||||
 | 
			
		||||
#include "mbedtls/entropy.h"
 | 
			
		||||
#include "mbedtls/entropy_poll.h"
 | 
			
		||||
 | 
			
		||||
#if defined(MBEDTLS_TIMING_C)
 | 
			
		||||
#include <string.h>
 | 
			
		||||
#include "mbedtls/timing.h"
 | 
			
		||||
#endif
 | 
			
		||||
#if defined(MBEDTLS_HAVEGE_C)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user