Gilles Peskine af601f9751 Fix undefined behavior with the most negative mbedtls_mpi_sint
When x is the most negative value of a two's complement type,
`(unsigned_type)(-x)` has undefined behavior, whereas `-(unsigned_type)x`
has well-defined behavior and does what was intended.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2022-11-15 23:02:14 +01:00
..
2022-10-19 08:35:08 -04:00
2021-06-28 09:24:07 +01:00
2022-11-02 17:25:48 +00:00
2022-11-02 17:27:25 +00:00
2022-11-02 17:27:25 +00:00
2022-11-02 17:27:25 +00:00
2022-10-13 14:28:15 +01:00
2022-10-07 14:08:42 +01:00
2022-09-16 12:02:48 +02:00
2022-10-13 14:30:03 +01:00
2022-10-13 14:29:38 +01:00
2022-10-13 16:47:13 +01:00
2021-06-28 09:24:07 +01:00
2021-03-29 14:20:18 +01:00
2021-03-29 14:20:18 +01:00
2021-06-28 09:24:07 +01:00
2022-08-31 10:14:25 +01:00
2022-05-12 09:45:03 +01:00
2022-07-01 16:43:25 +01:00
2020-11-25 13:10:50 +01:00
2022-10-13 13:32:02 +02:00
2022-11-09 22:43:31 +08:00
2022-10-19 08:35:09 -04:00
2022-11-09 22:43:31 +08:00
2022-11-09 22:43:31 +08:00
2022-11-09 22:43:31 +08:00
2022-11-09 22:43:31 +08:00
2022-03-29 17:43:56 +02:00
2022-10-28 12:51:35 -04:00
2022-10-28 12:51:35 -04:00
2022-10-28 12:51:35 -04:00