Fix bug #7446 with overrunning input buffer in ebrowse.
ebrowse.c (yylex): If end of input buffer encountered while searching for a newline after "//", return YYEOF.
This commit is contained in:
parent
09ffa822f8
commit
da2b5401e8
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2010-11-27 Joe Matarazzo <joe.matarazzo@gmail.com> (tiny change)
|
||||
|
||||
* ebrowse.c (yylex): If end of input buffer encountered while
|
||||
searching for a newline after "//", return YYEOF. (Bug#7446)
|
||||
|
||||
2010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
|
||||
|
||||
* emacsclient.c (set_local_socket) [DARWIN_OS]: Add fall-back
|
||||
|
|
|
@ -1784,6 +1784,11 @@ yylex ()
|
|||
case '/':
|
||||
while (GET (c) && c != '\n')
|
||||
;
|
||||
/* Don't try to read past the end of the input buffer if
|
||||
the file ends in a C++ comment without a newline. */
|
||||
if (c == 0)
|
||||
return YYEOF;
|
||||
|
||||
INCREMENT_LINENO;
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue