commit | 50d11fd0bbb9f5afebc36d264fbd2980aa791bb2 | [log] [tgz] |
---|---|---|
author | Andrew Scull <ascull@google.com> | Mon May 16 10:41:39 2022 +0000 |
committer | Tom Rini <trini@konsulko.com> | Wed Jun 08 09:24:04 2022 -0400 |
tree | b5cdedd90ad28a3cc937bd335b5a9e93748b83df | |
parent | c3f731332e0b7a039adfbf105af11820a691adf7 [diff] |
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: Andrew Scull <ascull@google.com> Cc: Sughosh Ganu <sughosh.ganu@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org>