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

2011-12-19 Thread Alexander Graf
On 19.12.2011, at 14:59, Alexander Graf wrote: > > 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 thi

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

2011-12-05 Thread Alexander Graf
On 05.12.2011, at 21:24, andrzej zaborowski wrote: > On 29 November 2011 08:41, David Gibson wrote: >> On Tue, Nov 29, 2011 at 05:21:39PM +1100, David Gibson wrote: >>> spapr_populate_pci_devices() containd a loop with PCI_NUM_REGIONS (7) >>> iterations. However this overruns the 'bars' global

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

2011-12-05 Thread andrzej zaborowski
On 29 November 2011 08:41, David Gibson wrote: > On Tue, Nov 29, 2011 at 05:21:39PM +1100, 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

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

2011-11-28 Thread David Gibson
On Tue, Nov 29, 2011 at 05:21:39PM +1100, 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 arra