Bah; r4954 introduced an array overrun.

[originally from svn r4955]
[r4954 == 47e9419452a9fca895f1c84412ab1040d1aa86a5]
This commit is contained in:
Simon Tatham
2004-12-08 09:37:57 +00:00
parent 47e9419452
commit b18c86241d

View File

@ -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;
}