Bug #52479 , a=brendan,r=mccabe. Fixed crash on bad \uXXXX in input.

git-svn-id: svn://10.0.0.236/trunk@80957 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rogerl%netscape.com 2000-10-11 22:34:40 +00:00
parent f684ef784c
commit 1ca0ef4c58

View File

@ -153,7 +153,7 @@ struct JSTokenStream {
uintN lookahead; /* count of lookahead tokens */
uintN lineno; /* current line number */
uintN ungetpos; /* next free char slot in ungetbuf */
jschar ungetbuf[5]; /* at most 5, for \uXXXX lookahead */
jschar ungetbuf[6]; /* at most 6, for \uXXXX lookahead */
uintN flags; /* flags -- see below */
ptrdiff_t linelen; /* physical linebuf segment length */
ptrdiff_t linepos; /* linebuf offset in physical line */