ebrowse.c (yylex): If end of input buffer encountered while
searching for a newline after "//", return YYEOF.
+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
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;