Re: [Qemu-devel] [PATCH v1] display: limit irq handler index to TC6393XB_GPIOS

2017-12-12 Thread Peter Maydell
On 12 December 2017 at 04:15, P J P wrote: > From: Prasad J Pandit > > The ctz32() routine could return value greater than > TC6393XB_GPIOS=16. This could lead to an OOB array access. > Mask 'level' to avoid it. > > Reported-by: Moguofang > Signed-off-by: Prasad J Pandit > --- > hw/display/tc6

[Qemu-devel] [PATCH v1] display: limit irq handler index to TC6393XB_GPIOS

2017-12-11 Thread P J P
From: Prasad J Pandit The ctz32() routine could return value greater than TC6393XB_GPIOS=16. This could lead to an OOB array access. Mask 'level' to avoid it. Reported-by: Moguofang Signed-off-by: Prasad J Pandit --- hw/display/tc6393xb.c | 1 + 1 file changed, 1 insertion(+) Update: mask 'l