Coverity CID 1476: Add assertion before index operation.

This commit is contained in:
christos 2006-03-18 22:35:42 +00:00
parent 4fcb2eb6de
commit 73a77c6016
1 changed files with 1 additions and 0 deletions

1
dist/nawk/b.c vendored
View File

@ -887,6 +887,7 @@ int cgoto(fa *f, int s, int c)
if (tmpset[j] != p[j])
goto different;
/* setvec is state i */
assert(c < NCHARS);
f->gototab[s][c] = i;
return i;
different:;