diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2010-11-27 15:04:57 -0500 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2010-11-27 15:04:57 -0500 |
commit | 07976ae3b816dea4fd541bbba862603d3132eb2c (patch) | |
tree | 4a437b7cb3abb01fb144530a130c991882a1b7f2 /lib-src | |
parent | 9610796712a3bc43730c99005906571a2c0bccbd (diff) | |
parent | 402c8a49571227f8a4e678d4a6cdd6ba7841aef9 (diff) | |
download | emacs-07976ae3b816dea4fd541bbba862603d3132eb2c.tar.gz |
Merge changes from emacs-23 branch
Diffstat (limited to 'lib-src')
-rw-r--r-- | lib-src/ChangeLog | 5 | ||||
-rw-r--r-- | lib-src/ebrowse.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index d1745a893bf..160a19099a3 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog @@ -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-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> * emacsclient.c (set_local_socket) [DARWIN_OS]: Add fall-back diff --git a/lib-src/ebrowse.c b/lib-src/ebrowse.c index 1fcbb8662f5..81067a90819 100644 --- a/lib-src/ebrowse.c +++ b/lib-src/ebrowse.c @@ -1700,6 +1700,11 @@ yylex (void) 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; |