Coverity CID 1476: Add assertion before index operation.
This commit is contained in:
parent
4fcb2eb6de
commit
73a77c6016
|
@ -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:;
|
||||
|
|
Loading…
Reference in New Issue