mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-03 20:22:59 -05:00 
			
		
		
		
	Fix the use of unitialized memory with MBEDTLS_TEST_NULL_ENTROPY
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
		
							parent
							
								
									8133abd746
								
							
						
					
					
						commit
						8e1e46ebb5
					
				@ -205,13 +205,13 @@ int mbedtls_null_entropy_poll( void *data,
 | 
			
		||||
{
 | 
			
		||||
    ((void) data);
 | 
			
		||||
    ((void) output);
 | 
			
		||||
    *olen = 0;
 | 
			
		||||
 | 
			
		||||
    *olen = 0;
 | 
			
		||||
    if( len < sizeof(unsigned char) )
 | 
			
		||||
        return( 0 );
 | 
			
		||||
 | 
			
		||||
    output[0] = 0;
 | 
			
		||||
    *olen = sizeof(unsigned char);
 | 
			
		||||
 | 
			
		||||
    return( 0 );
 | 
			
		||||
}
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user