zephyr/subsys
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
..
bluetooth Bluetooth: host: Fix adv object not released on directed adv timeout 2020-06-25 19:34:16 +02:00
canbus canbus: canopen: fix reference to CAN in Automation draft standard 2020-06-29 14:10:56 -04:00
console console: tty: Fix k_sem_take with wait time from ISR 2020-06-17 17:10:08 +02:00
cpp cpp: Fixed compile warning with extern array declaration 2020-06-09 14:42:16 +02:00
debug
dfu dfu: flash_img: Constify flash_img_buffered_write() data parameter 2020-06-10 09:30:08 +02:00
disk
fb
fs fs: nvs: Fix handling of corrupt ate's in garbage collector 2020-06-26 12:07:13 -05:00
jwt
logging logging: enhanced external logsystems 2020-06-17 17:08:12 +02:00
mgmt mgmt: fs: Add security warning 2020-06-12 11:15:24 +02:00
net net: openthread: New build options for OpenThread 2020-06-30 07:48:08 -04:00
power device: provide internal access to static device array 2020-06-23 13:27:14 +02:00
random random: entropy: Fix invalid memory access 2020-07-01 07:22:18 -04:00
settings settings: Fix uninitialised variables 2020-06-17 08:55:59 +03:00
shell shell: kernel: select dependencies 2020-06-24 21:37:12 -04:00
stats
storage storage/stream: allow NULL data pointer 2020-06-22 14:36:05 +02:00
testsuite test: remove TEST_SHELL 2020-06-24 21:37:12 -04:00
tracing
usb usb: Correct USB setup packet endianness in USB core. 2020-06-23 19:21:41 +02:00
CMakeLists.txt
Kconfig