Re: [Xen-devel] [PATCH] fix out of bound access to mode_strings

2016-12-09 Thread Julien Grall
Hi Stefano, On 09/12/16 01:17, Stefano Stabellini wrote: mode == ARRAY_SIZE(mode_strings) causes an out of bound access to the mode_strings array. Coverity-ID: 1381859 Signed-off-by: Stefano Stabellini Reviewed-by: Julien Grall On a side note, technically this will never happen because th

[Xen-devel] [PATCH] fix out of bound access to mode_strings

2016-12-08 Thread Stefano Stabellini
mode == ARRAY_SIZE(mode_strings) causes an out of bound access to the mode_strings array. Coverity-ID: 1381859 Signed-off-by: Stefano Stabellini diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c index eb85d92..35d8e8b 100644 --- a/xen/arch/arm/traps.c +++ b/xen/arch/arm/traps.c @@ -643,7