simon-git: puzzles (main): Ben Harris

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Fri Mar 31 20:49:57 BST 2023


TL;DR:
  91735e5 Correct a range check in Magnets' layout verification

Repository:     https://git.tartarus.org/simon/puzzles.git
On the web:     https://git.tartarus.org/?p=simon/puzzles.git
Branch updated: main
Committer:      Ben Harris <bjh21 at bjh21.me.uk>
Date:           2023-03-31 20:49:57

commit 91735e5019be84d2fa693c5d40746c818ace28f8
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=91735e5019be84d2fa693c5d40746c818ace28f8;hp=1af1204b9c33c9c03b2e0fe66c2f07d9729cbc72
Author: Ben Harris <bjh21 at bjh21.me.uk>
Date:   Fri Mar 31 20:38:31 2023 +0100

    Correct a range check in Magnets' layout verification
    
    Squares in the grid are numbered from 0, so the upper limit check
    needs to use "<=" rather than "<".  Without this, invalid descriptions
    can cause a read overrun off the end of the board.

 magnets.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the tartarus-commits mailing list