shithub: puzzles

Download patch

ref: a4c6f21b8e286322d3c1820785907a000fe1092f
parent: 9be7db547aa2eba68492dc3326ea36ebeeb63505
author: Ben Harris <bjh21@bjh21.me.uk>
date: Mon Feb 13 19:06:10 EST 2023

Net: validate co-ordinates in decode_ui()

The offset and centre location should be within the grid.  Otherwise the
redraw code will suffer an assertion failure.  This save file
demonstrates the problem:

SAVEFILE:41:Simon Tatham's Portable Puzzle Collection
VERSION :1:1
GAME    :3:Net
PARAMS  :4:5x5w
CPARAMS :4:5x5w
DESC    :25:9893e85285bb72e6de5182741
UI      :9:O0,0;C6,6
NSTATES :1:1
STATEPOS:1:1