diff options
| author | Mark Cave-Ayland | 2021-10-08 00:12:44 +0200 |
|---|---|---|
| committer | Laurent Vivier | 2021-10-08 13:31:03 +0200 |
| commit | 14d0ddfce781374b7ce40062c0afc2ed00419267 (patch) | |
| tree | 91b68eba45d25307148ef11093e50129f6c9b58b /include | |
| parent | macfb: fix invalid object reference in macfb_common_realize() (diff) | |
| download | qemu-14d0ddfce781374b7ce40062c0afc2ed00419267.tar.gz qemu-14d0ddfce781374b7ce40062c0afc2ed00419267.tar.xz qemu-14d0ddfce781374b7ce40062c0afc2ed00419267.zip | |
macfb: fix overflow of color_palette array
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 within
MacfbState.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20211007221253.29024-5-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
