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 <sstabell...@kernel.org>

Reviewed-by: Julien Grall <julien.gr...@arm.com>

On a side note, technically this will never happen because the value of mode is comprised between 0 and 0x1f. The last value of the array is currently 0x1fff (see Table D1-3 and Table D1-4 in ARM DDI 0487A.k).

So I would not bother to backport this patch.

Cheers,

--
Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

Reply via email to