mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-23 13:05:38 +01:00
70a7dcda3f
Fix mbedtls_mpi_mul_mpi() when one of the operands is zero and the other is negative. The sign of the result must be 1, since some library functions do not treat {-1, 0, NULL} or {-1, n, {0}} as representing the value 0. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
8 lines
421 B
Plaintext
8 lines
421 B
Plaintext
Bugfix
|
|
* Fix some cases in the bignum module where the library constructed an
|
|
unintended representation of the value 0 which was not processed
|
|
correctly by some bignum operations. This could happen when
|
|
mbedtls_mpi_read_string() was called on "-0", or when
|
|
mbedtls_mpi_mul_mpi() and mbedtls_mpi_mul_int() was called with one of
|
|
the arguments being negative and the other being 0. Fixes #4643.
|