mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-03-08 10:09:54 +00:00
- Fixed handling error in mpi_cmp_mpi() on longer B values (found by Hui Dong)
This commit is contained in:
parent
e2f8ff6797
commit
32356acc4f
|
@ -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)
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue