solver: check completion before probing square
next_pos() returns the grid end sentinel when a placement completes the board. Avoid passing that sentinel to largest_square(), which requires an in-range position and otherwise reads past the grid. Tests: Debug, Release, ASan, and UBSan CTest suites Refs: #14
This commit was merged in pull request #19.
This commit is contained in:
Reference in New Issue
Block a user