- Fixed handling error in mpi_cmp_mpi() on longer B values (found by Hui Dong)

This commit is contained in:
Paul Bakker 2012-04-20 13:34:52 +00:00
parent e2f8ff6797
commit 32356acc4f
2 changed files with 5 additions and 1 deletions

View file

@ -1,6 +1,10 @@
PolarSSL ChangeLog
= Version 1.1.2 released on 2012-04-20
Bugfix
* Fixed handling error in mpi_cmp_mpi() on longer B values (found by
Hui Dong)
Security
* Fixed potential memory corruption on miscrafted client messages (found by
Frama-C team at CEA LIST)

View file

@ -687,7 +687,7 @@ int mpi_cmp_mpi( const mpi *X, const mpi *Y )
return( 0 );
if( i > j ) return( X->s );
if( j > i ) return( -X->s );
if( j > i ) return( -Y->s );
if( X->s > 0 && Y->s < 0 ) return( 1 );
if( Y->s > 0 && X->s < 0 ) return( -1 );