mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-11-10 07:10:12 +08:00
Fixed bug in mpi_add_abs with adding a small number to a large mpi with carry rollover.
(cherry picked from commit 2d319fdfcb36d53a733293904a5bf42775332fed)
This commit is contained in:
parent
badc9bce1c
commit
ebee076da6
@ -761,7 +761,7 @@ int mpi_add_abs( mpi *X, const mpi *A, const mpi *B )
|
||||
p = X->p + i;
|
||||
}
|
||||
|
||||
*p += c; c = ( *p < c ); i++;
|
||||
*p += c; c = ( *p < c ); i++; p++;
|
||||
}
|
||||
|
||||
cleanup:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user