Files
mbedtls/library
Gilles Peskine 984fd07c53 Fix and simplify sign handling in mbedtls_mpi_read_string
Move the handling of the sign out of the base-specific loops. This
both simplifies the code, and corrects an edge case: the code in the
non-hexadecimal case depended on mbedtls_mpi_mul_int() preserving the
sign bit when multiplying a "negative zero" MPI by an integer, which
used to be the case but stopped with PR #2512.

Fix #4295. Thanks to Guido Vranken for analyzing the cause of the bug.
Credit to OSS-Fuzz.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2021-04-09 16:32:08 +02:00
..
2021-03-04 14:43:17 +00:00
2020-11-16 13:07:51 +01:00
2020-09-09 15:17:11 +02:00
2020-09-22 16:22:27 +02:00
2021-02-22 19:40:41 +01:00
2020-11-28 14:59:56 -03:00