rockbox/apps/plugins/chessbox
William Wilgus 1fa7c56351 Fix for Chessbox bug FS#10363
Chessbox was overflowing GameList[240] causing the board to flip + crash

GameCnt changed to unsigned char which allows the array to roll over
to 0 after 255

define MAX_GAME_CNT 256 and GameList[MAX_GAME_CNT] along with 1 byte GameCnt
should fix this issue

dbg save routine left in for now to help identify any other problems

Added bounds checking to prevent second bug found when loading .pgn files

Change-Id: I2b615c8ecbed4368724412f80ce07346f3cf30a7
2017-02-01 01:33:48 +01:00
..
chessbox.c Fix for Chessbox bug FS#10363 2017-02-01 01:33:48 +01:00
chessbox.make Refactor and unify objcopy calls in the build system. Also now properly handles DEBUG builds on hosted targets to keep debug symbols if necessary. 2012-04-04 21:48:19 +02:00
chessbox_pgn.c Fix for Chessbox bug FS#10363 2017-02-01 01:33:48 +01:00
chessbox_pgn.h Remove Whitespaces from chessbox 2017-01-31 01:09:23 +01:00
gnuchess.c Fix for Chessbox bug FS#10363 2017-02-01 01:33:48 +01:00
gnuchess.h Fix for Chessbox bug FS#10363 2017-02-01 01:33:48 +01:00
opening.c Remove Whitespaces from chessbox 2017-01-31 01:09:23 +01:00
opening.h
SOURCES