pc: do not access out of bounds array element
This commit is contained in:
parent
89ae389eb6
commit
bc5b0254d0
1 changed files with 1 additions and 1 deletions
|
@ -636,7 +636,7 @@ yylex(void)
|
|||
yylval.sym = getsym(buf, 1);
|
||||
return LSYMB;
|
||||
}
|
||||
if(c < 128 && (kw = optab[c], kw != nil)){
|
||||
if(c >= 0 && c < 128 && (kw = optab[c], kw != nil)){
|
||||
b = Bgetc(in);
|
||||
for(; kw->name[0] == c; kw++)
|
||||
if(kw->name[0] == b)
|
||||
|
|
Loading…
Reference in a new issue