mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-26 04:06:12 +00:00
In sys_rand_get() if the entropy hardware unlikely return error, the fallgback is using the system timer to and fill the given buffer with that data. The problem what that k_cycle_get_32() returns a four bytes integer and depending the sizeof of the buffer we need copy the right amount of data. That was not being done properly leading to invalid read/write memory access. Fixes #26435 Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Kconfig | ||
rand32_ctr_drbg.c | ||
rand32_entropy_device.c | ||
rand32_timer.c | ||
rand32_xoroshiro128.c |