zephyr/subsys/random
Carles Cufi f86e8a66d8 random: rand32_timer: Avoid alignment faults by using memcpy
The previous implementation assumed that the dst pointer was always
aligned to a 4-byte boundary in platforms that require alignment for
storage of 32-bit integers. Since this is required for certain platforms
(eg. Arm Cortex-M0), use memcpy() instead, which always takes
alignment into account.

Fixes #33969.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2021-04-16 15:34:59 -04:00
..
CMakeLists.txt random: Warning when using test config 2020-10-02 11:30:03 +02:00
Kconfig
rand32_ctr_drbg.c random: ctr_drbg: Fix the error path in sys_csrand_get 2020-12-01 10:20:06 -06:00
rand32_entropy_device.c
rand32_handlers.c
rand32_timer.c random: rand32_timer: Avoid alignment faults by using memcpy 2021-04-16 15:34:59 -04:00
rand32_xoroshiro128.c rand: xoroshiro128: fix buffer overflow 2020-11-11 15:02:04 -06:00