Skip to content
Commit 2b43c3b4 authored by Andreas Anderberg's avatar Andreas Anderberg Committed by Maureen Helm
Browse files

drivers: serial: emul: Make fifo_read() respect size



uart_emul_fifo_read() didn't regard the size arg, hence if the RX ring
buffer contained more data than the size of the input rx_data buffer
size, this could result in buffer overflow. This becomes more obvious
when configuring device tree property latch-buffer-size > 1.

Signed-off-by: default avatarAndreas Anderberg <andreas.anderberg@u-blox.com>
parent 129b73ce
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment