[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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 <sstabellini@xxxxxxxxxx>

Reviewed-by: Julien Grall <julien.grall@xxxxxxx>

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@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.