zephyr/subsys/random
Flavio Ceolin 125080241d random: entropy: Fix invalid memory access
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>
2020-07-01 07:22:18 -04:00
..
CMakeLists.txt
Kconfig
rand32_ctr_drbg.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
rand32_entropy_device.c random: entropy: Fix invalid memory access 2020-07-01 07:22:18 -04:00
rand32_timer.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
rand32_xoroshiro128.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00