aboutsummaryrefslogtreecommitdiff
path: root/rect.c
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2023-01-07 22:05:33 +0000
committerBen Harris <bjh21@bjh21.me.uk>2023-01-15 16:21:37 +0000
commit1aded127eb3fb7194a1752d96bfba95a5b7fa4dc (patch)
treea16465d74d685ea890f23f45d6a917c17d8908d5 /rect.c
parenta539f38efd0d821c8325846fc879a3e46d6412bf (diff)
downloadpuzzles-1aded127eb3fb7194a1752d96bfba95a5b7fa4dc.zip
puzzles-1aded127eb3fb7194a1752d96bfba95a5b7fa4dc.tar.gz
puzzles-1aded127eb3fb7194a1752d96bfba95a5b7fa4dc.tar.bz2
puzzles-1aded127eb3fb7194a1752d96bfba95a5b7fa4dc.tar.xz
Netslide: Reject moves wider than the grid
Also add a corresponding assertion to the underlying move primitive. Without this limit, long moves cause a buffer overrun. To demonstrate the problem, build Netslide with AddressSanitizer and load this save file: SAVEFILE:41:Simon Tatham's Portable Puzzle Collection VERSION :1:1 GAME :8:Netslide PARAMS :3:4x4 CPARAMS :3:4x4 DESC :16:49b59aca247714b4 NSTATES :1:2 STATEPOS:1:2 MOVE :5:R3,51
Diffstat (limited to 'rect.c')
0 files changed, 0 insertions, 0 deletions