1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-08 17:42:09 +03:00

Merge pull request #6609 from gilles-peskine-arm/mpi_sint-min-ub

Fix undefined behavior in bignum: NULL+0 and -most-negative-sint
This commit is contained in:
Gilles Peskine
2022-11-21 19:51:58 +01:00
committed by GitHub
6 changed files with 190 additions and 5 deletions

View File

@@ -0,0 +1,4 @@
Bugfix
* Fix undefined behavior (typically harmless in practice) of
mbedtls_mpi_add_mpi(), mbedtls_mpi_add_abs() and mbedtls_mpi_add_int()
when both operands are 0 and the left operand is represented with 0 limbs.

View File

@@ -0,0 +1,4 @@
Bugfix
* Fix undefined behavior (typically harmless in practice) when some bignum
functions receive the most negative value of mbedtls_mpi_sint. Credit
to OSS-Fuzz. Fixes #6597.