diff options
| author | Andrew Scull <[email protected]> | 2022-04-21 16:11:03 +0000 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-05-03 15:50:45 -0400 |
| commit | f2c1ef1b6dfe93e9912d5d5dfae1e527da511c3f (patch) | |
| tree | 77e309d5c02e5ccfedf38223861f46ff9ccd8f37 /include/linux/linux_string.h | |
| parent | c690f64f4c958531fb4bb1b1540931adba022830 (diff) | |
virtio: pci: Check virtio common config size
Check that the common config is at least as large as the struct it is
expected to contain. Only then is it safe to cast the pointer and be
safe from out-of-bounds accesses.
Signed-off-by: Andrew Scull <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Diffstat (limited to 'include/linux/linux_string.h')
0 files changed, 0 insertions, 0 deletions
