summary refs log tree commit diff stats
path: root/scripts/qemugdb/timers.py
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2021-10-07 23:12:44 +0100
committerLaurent Vivier <laurent@vivier.eu>2021-10-08 13:31:03 +0200
commit14d0ddfce781374b7ce40062c0afc2ed00419267 (patch)
tree91b68eba45d25307148ef11093e50129f6c9b58b /scripts/qemugdb/timers.py
parent906c2323f1edf41b1851e7e36231023ee930aa3c (diff)
downloadfocaccia-qemu-14d0ddfce781374b7ce40062c0afc2ed00419267.tar.gz
focaccia-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 'scripts/qemugdb/timers.py')
0 files changed, 0 insertions, 0 deletions