Skip to content
Commit 43937a4f authored by Andrew Scull's avatar Andrew Scull Committed by Tom Rini
Browse files

virtio: rng: Check length before copying



Check the length of data written by the device is consistent with the
size of the buffers to avoid out-of-bounds memory accesses in case
values aren't consistent.

Signed-off-by: default avatarAndrew Scull <ascull@google.com>
Cc: Sughosh Ganu <sughosh.ganu@linaro.org>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 420b3e51
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment