Re: [Qemu-devel] [PATCH 2/2] xen-pt: fix Out-of-bounds read

2015-02-09 Thread Gonglei
On 2015/2/10 15:00, Stefano Stabellini wrote: > On Tue, 10 Feb 2015, Gonglei wrote: >> On 2015/2/10 14:39, Stefano Stabellini wrote: >>> On Sat, 31 Jan 2015, arei.gong...@huawei.com wrote: From: Gonglei The array length of s->real_device.io_regions[] is "PCI_NUM_REGIONS - 1". A

Re: [Qemu-devel] [PATCH 2/2] xen-pt: fix Out-of-bounds read

2015-02-09 Thread Stefano Stabellini
On Tue, 10 Feb 2015, Gonglei wrote: > On 2015/2/10 14:39, Stefano Stabellini wrote: > > On Sat, 31 Jan 2015, arei.gong...@huawei.com wrote: > >> From: Gonglei > >> > >> The array length of s->real_device.io_regions[] is > >> "PCI_NUM_REGIONS - 1". Add a check, just make Coverity happy. > >> > >> S

Re: [Qemu-devel] [PATCH 2/2] xen-pt: fix Out-of-bounds read

2015-02-09 Thread Gonglei
On 2015/2/10 14:39, Stefano Stabellini wrote: > On Sat, 31 Jan 2015, arei.gong...@huawei.com wrote: >> From: Gonglei >> >> The array length of s->real_device.io_regions[] is >> "PCI_NUM_REGIONS - 1". Add a check, just make Coverity happy. >> >> Signed-off-by: Gonglei >> --- >> hw/xen/xen_pt_conf

Re: [Qemu-devel] [PATCH 2/2] xen-pt: fix Out-of-bounds read

2015-02-09 Thread Stefano Stabellini
On Sat, 31 Jan 2015, arei.gong...@huawei.com wrote: > From: Gonglei > > The array length of s->real_device.io_regions[] is > "PCI_NUM_REGIONS - 1". Add a check, just make Coverity happy. > > Signed-off-by: Gonglei > --- > hw/xen/xen_pt_config_init.c | 5 + > 1 file changed, 5 insertions(+)

[Qemu-devel] [PATCH 2/2] xen-pt: fix Out-of-bounds read

2015-01-30 Thread arei.gonglei
From: Gonglei The array length of s->real_device.io_regions[] is "PCI_NUM_REGIONS - 1". Add a check, just make Coverity happy. Signed-off-by: Gonglei --- hw/xen/xen_pt_config_init.c | 5 + 1 file changed, 5 insertions(+) diff --git a/hw/xen/xen_pt_config_init.c b/hw/xen/xen_pt_config_init