Re: [PATCH 03/12] macfb: fix overflow of color_palette array

2021-10-04 Thread Mark Cave-Ayland
On 04/10/2021 09:53, Laurent Vivier wrote: Le 02/10/2021 à 12:59, Mark Cave-Ayland a écrit : The palette_current index counter has a maximum size of 256 * 3 to cover a full color palette of 256 RGB entries. Linux assumes that the palette_current index wraps back around to zero after writing 256

Re: [PATCH 03/12] macfb: fix overflow of color_palette array

2021-10-04 Thread Laurent Vivier
Le 02/10/2021 à 12:59, Mark Cave-Ayland a écrit : > The palette_current index counter has a maximum size of 256 * 3 to cover a > full > color palette of 256 RGB entries. Linux assumes that the palette_current index > wraps back around to zero after writing 256 RGB entries so ensure that > palette_

[PATCH 03/12] macfb: fix overflow of color_palette array

2021-10-02 Thread Mark Cave-Ayland
The palette_current index counter has a maximum size of 256 * 3 to cover a full color palette of 256 RGB entries. Linux assumes that the palette_current index wraps back around to zero after writing 256 RGB entries so ensure that palette_current is reset at this point to prevent data corruption wit