Re: [PATCH 4/4] hw/display/artist.c: fix out of bounds check

2020-08-01 Thread Helge Deller
On 29.07.20 19:26, Richard Henderson wrote: > On 7/27/20 2:46 PM, Helge Deller wrote: >> -for (i = 0; i < pix_count; i++) { >> +for (i = 0; i < pix_count && offset + i < buf->size; i++) { >> artist_rop8(s, p + offset + pix_count - 1 - i, >> (dat

Re: [PATCH 4/4] hw/display/artist.c: fix out of bounds check

2020-07-29 Thread Richard Henderson
On 7/27/20 2:46 PM, Helge Deller wrote: > -for (i = 0; i < pix_count; i++) { > +for (i = 0; i < pix_count && offset + i < buf->size; i++) { > artist_rop8(s, p + offset + pix_count - 1 - i, > (data & 1) ? (s->plane_mask >> 24) : 0); >

[PATCH 4/4] hw/display/artist.c: fix out of bounds check

2020-07-27 Thread Helge Deller
From: Sven Schnelle Signed-off-by: Sven Schnelle Signed-off-by: Helge Deller --- hw/display/artist.c | 18 ++ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/hw/display/artist.c b/hw/display/artist.c index 6261bfe65b..46043ec895 100644 --- a/hw/display/artist.c +