~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Bah; r4954 introduced an array overrun.
[sgt/puzzles]
/
pattern.c
diff --git
a/pattern.c
b/pattern.c
index
ca71fba
..
e7b99b3
100644
(file)
--- a/
pattern.c
+++ b/
pattern.c
@@
-330,7
+330,7
@@
int compute_rowdata(int *ret, unsigned char *start, int len, int step)
i += runlen;
}
- if (start[i*step] == GRID_UNKNOWN)
+ if (
i < len &&
start[i*step] == GRID_UNKNOWN)
return -1;
}