aboutsummaryrefslogtreecommitdiff
path: root/PuzzleApplet.java
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2023-02-26 21:48:10 +0000
committerBen Harris <bjh21@bjh21.me.uk>2023-02-26 22:47:28 +0000
commit6ee62a43abe7d7e77226415b21d1cbf16dbda85a (patch)
tree99b7f417cb462acee1d2a4ee9f42dd1a240ee8da /PuzzleApplet.java
parente2d390aae872cee4cb16d746af3b2eeb7713cbf5 (diff)
downloadpuzzles-6ee62a43abe7d7e77226415b21d1cbf16dbda85a.zip
puzzles-6ee62a43abe7d7e77226415b21d1cbf16dbda85a.tar.gz
puzzles-6ee62a43abe7d7e77226415b21d1cbf16dbda85a.tar.bz2
puzzles-6ee62a43abe7d7e77226415b21d1cbf16dbda85a.tar.xz
Correctly handle some short save files
A save file that ended in the middle of a value before the "SAVEFILE" field had been loaded would cause a read from uninitialised memory. While technically undefined behaviour this was practically pretty harmless. Fixed by handling unexpected EOF here the same an unexpected EOF anywhere else. This bug could be demonstrated by loading a truncated save file like this in a build with MemorySanitizer enabled: SAVEFILE:41:Simo
Diffstat (limited to 'PuzzleApplet.java')
0 files changed, 0 insertions, 0 deletions