aboutsummaryrefslogtreecommitdiff
path: root/midend.c
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2023-01-08 10:20:26 +0000
committerBen Harris <bjh21@bjh21.me.uk>2023-01-15 16:21:37 +0000
commit942d883d9bf86f4240dc7ec22b726d64f6db9af2 (patch)
tree824083a2310a58477c2608eb8dcc5177383822fa /midend.c
parent4845f3e913a02417fe7a8d84c6407d40807ec0ec (diff)
downloadpuzzles-942d883d9bf86f4240dc7ec22b726d64f6db9af2.zip
puzzles-942d883d9bf86f4240dc7ec22b726d64f6db9af2.tar.gz
puzzles-942d883d9bf86f4240dc7ec22b726d64f6db9af2.tar.bz2
puzzles-942d883d9bf86f4240dc7ec22b726d64f6db9af2.tar.xz
Range-check normal moves in Undead
Normal moves shouldn't be allowed to write outside the board. This buffer overrun can be demonstrated by building Undead with AddressSanitizer and loading this save file: SAVEFILE:41:Simon Tatham's Portable Puzzle Collection VERSION :1:1 GAME :6:Undead PARAMS :5:4x4dn CPARAMS :5:4x4dn DESC :48:5,0,5,cRRaLRcLRc,0,2,1,3,1,0,0,3,4,3,2,3,4,2,1,1 NSTATES :1:2 STATEPOS:1:2 MOVE :3:Z10
Diffstat (limited to 'midend.c')
0 files changed, 0 insertions, 0 deletions