Re: [Xen-devel] [PATCH v2] fix potential pa_range_info out of bound access

2016-12-12 Thread Stefano Stabellini
On Mon, 12 Dec 2016, Julien Grall wrote: > On 12/12/16 19:17, Stefano Stabellini wrote: > > On Mon, 12 Dec 2016, Julien Grall wrote: > > > Hi Stefano, > > > > > > On 09/12/16 19:46, Stefano Stabellini wrote: > > > > pa_range_info has only 8 elements and is accessed using pa_range as > > > > index.

Re: [Xen-devel] [PATCH v2] fix potential pa_range_info out of bound access

2016-12-12 Thread Julien Grall
On 12/12/16 19:17, Stefano Stabellini wrote: On Mon, 12 Dec 2016, Julien Grall wrote: Hi Stefano, On 09/12/16 19:46, Stefano Stabellini wrote: pa_range_info has only 8 elements and is accessed using pa_range as index. pa_range is initialized to 16, potentially causing out of bound access err

Re: [Xen-devel] [PATCH v2] fix potential pa_range_info out of bound access

2016-12-12 Thread Stefano Stabellini
On Mon, 12 Dec 2016, Julien Grall wrote: > Hi Stefano, > > On 09/12/16 19:46, Stefano Stabellini wrote: > > pa_range_info has only 8 elements and is accessed using pa_range as > > index. pa_range is initialized to 16, potentially causing out of bound > > access errors. Fix the issue by checking th

Re: [Xen-devel] [PATCH v2] fix potential pa_range_info out of bound access

2016-12-12 Thread Julien Grall
Hi Stefano, On 09/12/16 19:46, Stefano Stabellini wrote: pa_range_info has only 8 elements and is accessed using pa_range as index. pa_range is initialized to 16, potentially causing out of bound access errors. Fix the issue by checking that pa_range is not greater than the size of the array. C

[Xen-devel] [PATCH v2] fix potential pa_range_info out of bound access

2016-12-09 Thread Stefano Stabellini
pa_range_info has only 8 elements and is accessed using pa_range as index. pa_range is initialized to 16, potentially causing out of bound access errors. Fix the issue by checking that pa_range is not greater than the size of the array. Coverity-ID: 1381865 Signed-off-by: Stefano Stabellini dif