Re: [Qemu-devel] [PATCH] pseries: Fix array overrun bug in PCI code

2011-12-19 Thread Alexander Graf
On 29.11.2011, at 07:21, David Gibson wrote: > spapr_populate_pci_devices() containd a loop with PCI_NUM_REGIONS (7) > iterations. However this overruns the 'bars' global array, which only has > 6 elements. In fact we only want to run this loop for things listed in the > bars array, so this patc

[Qemu-devel] [PATCH] pseries: Fix array overrun bug in PCI code

2011-11-28 Thread David Gibson
spapr_populate_pci_devices() containd a loop with PCI_NUM_REGIONS (7) iterations. However this overruns the 'bars' global array, which only has 6 elements. In fact we only want to run this loop for things listed in the bars array, so this patch corrects the loop bounds to reflect that. Signed-off