commit | 53d6e1df6675b95e7707c38c89b776d88e5d7cc6 | [log] [tgz] |
---|---|---|
author | Andrew Scull <ascull@google.com> | Thu Apr 21 16:11:03 2022 +0000 |
committer | Tom Rini <trini@konsulko.com> | Tue May 03 15:50:45 2022 -0400 |
tree | 77e309d5c02e5ccfedf38223861f46ff9ccd8f37 | |
parent | 5cda9c03989d7fca8bb869d15ad8fa0309210350 [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 <ascull@google.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>