1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-11-05 08:10:38 +03:00
Files
mbedtls/library
Gilles Peskine 31a4ba7264 Fix misuse of signed ints in the HAVEGE module
The elements of the HAVEGE state are manipulated with bitwise
operations, with the expectations that the elements are 32-bit
unsigned integers (or larger). But they are declared as int, and so
the code has undefined behavior. Clang with Asan correctly points out
some shifts that reach the sign bit.

Use unsigned int internally. This is technically an aliasing violation
since we're accessing an array of `int` via a pointer to `unsigned
int`, but since we don't access the array directly inside the same
function, it's very unlikely to be compiled in an unintended manner.
2019-06-17 15:01:08 +02:00
..
2019-02-11 21:13:33 +00:00
2019-03-06 13:51:30 +00:00
2019-04-24 10:51:54 +02:00
2019-04-24 10:51:54 +02:00
2018-07-23 18:18:32 +01:00
2019-04-24 10:51:54 +02:00
2019-04-24 10:51:54 +02:00
2019-04-24 10:51:54 +02:00
2018-11-06 13:12:47 +00:00
2019-04-24 10:51:54 +02:00
2019-04-24 10:51:54 +02:00
2019-04-24 10:51:54 +02:00
2017-10-29 17:53:52 +02:00
2018-10-25 16:07:16 +01:00
2018-10-07 17:48:37 +01:00
2019-02-11 21:13:33 +00:00
2019-02-11 21:13:33 +00:00