summaryrefslogtreecommitdiff
path: root/arch/arm/mach-stm32mp/cmd_stm32prog
diff options
context:
space:
mode:
authorAndrew Scull <ascull@google.com>2022-04-21 16:11:03 +0000
committerTom Rini <trini@konsulko.com>2022-05-03 15:50:45 -0400
commitf2c1ef1b6dfe93e9912d5d5dfae1e527da511c3f (patch)
tree77e309d5c02e5ccfedf38223861f46ff9ccd8f37 /arch/arm/mach-stm32mp/cmd_stm32prog
parentc690f64f4c958531fb4bb1b1540931adba022830 (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>
Diffstat (limited to 'arch/arm/mach-stm32mp/cmd_stm32prog')
0 files changed, 0 insertions, 0 deletions