pcihp: fix possible array out of bounds
commitfa365d7cd11185237471823a5a33d36765454e16
authorGonglei <arei.gonglei@huawei.com>
Wed, 20 Aug 2014 05:52:30 +0000 (20 13:52 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 24 Aug 2014 22:16:06 +0000 (25 00:16 +0200)
treefdcc5938ae5dd0b2301dc04584326c00a2e39e3c
parent9f6b2f1c6497adcce4dec9b3bd1f1e78877a03dd
pcihp: fix possible array out of bounds

Prevent out-of-bounds array access on
acpi_pcihp_pci_status.

Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Cc: qemu-stable@nongnu.org
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
hw/acpi/pcihp.c