mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	Length check added
This commit is contained in:
		
							parent
							
								
									370717b571
								
							
						
					
					
						commit
						b6eb1ca01c
					
				@ -856,6 +856,9 @@ int mbedtls_rsa_rsaes_pkcs1_v15_decrypt( mbedtls_rsa_context *ctx,
 | 
			
		||||
        bad |= *p++; /* Must be zero */
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if( pad_count < 8 )
 | 
			
		||||
        return( MBEDTLS_ERR_RSA_BAD_INPUT_DATA );
 | 
			
		||||
 | 
			
		||||
    if( bad )
 | 
			
		||||
        return( MBEDTLS_ERR_RSA_INVALID_PADDING );
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user