summaryrefslogtreecommitdiffstats
path: root/hw/pci-host/prep.c
diff options
context:
space:
mode:
authorPrasad J Pandit2020-06-04 13:35:25 +0200
committerMichael S. Tsirkin2020-06-09 20:18:04 +0200
commitf7d6a635fa3b7797f9d072e280f065bf3cfcd24d (patch)
tree9e43e03f7f27fbda33da15a70a0bc8a74e69094b /hw/pci-host/prep.c
parenthw/pci/pcie: Move hot plug capability check to pre_plug callback (diff)
downloadqemu-f7d6a635fa3b7797f9d072e280f065bf3cfcd24d.tar.gz
qemu-f7d6a635fa3b7797f9d072e280f065bf3cfcd24d.tar.xz
qemu-f7d6a635fa3b7797f9d072e280f065bf3cfcd24d.zip
pci: assert configuration access is within bounds
While accessing PCI configuration bytes, assert that 'address + len' is within PCI configuration space. Generally it is within bounds. This is more of a defensive assert, in case a buggy device was to send 'address' which may go out of bounds. Suggested-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org> Message-Id: <20200604113525.58898-1-ppandit@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pci-host/prep.c')
0 files changed, 0 insertions, 0 deletions