mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-03-22 13:32:58 +00:00
Add test cases for mbedtls_mpi_sub_abs() where the second operand has more limbs than the first operand (which, if the extra limbs are not all zero, implies that the function returns MBEDTLS_ERR_MPI_NEGATIVE_VALUE). This exposes a buffer overflow (reported in #4042). Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>