Files
mbedtls/library
Gilles Peskine 84a21d5a54 Fix undefined behavior in unsigned-to-signed conversion
The code assumed that `int x = - (unsigned) u` with 0 <= u < INT_MAX
sets `x` to the negative of u, but actually this calculates
(UINT_MAX - u) and then converts this value to int, which overflows.
Cast to int before applying the unary minus operator to guarantee the
desired behavior.
2018-10-12 19:19:12 +02:00
..
2018-03-09 10:48:12 +00:00
2017-07-27 21:44:33 +01:00
2017-09-06 17:51:14 +03:00
2017-10-10 19:04:27 +03:00
2018-03-30 18:52:10 +02:00
2018-02-22 08:20:42 +00:00
2018-02-22 08:20:42 +00:00
2015-09-04 14:21:07 +02:00
2018-05-25 14:58:33 +01:00
2015-09-04 14:21:07 +02:00
2017-10-29 17:53:52 +02:00
2018-01-29 10:24:50 +01:00
2015-09-04 14:21:07 +02:00
2018-06-22 11:45:38 +01:00
2018-07-02 12:13:26 +01:00
2015-09-04 14:21:07 +02:00