emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/emacs-23 r100247: Fix bug #7446 with overru


From: Eli Zaretskii
Subject: [Emacs-diffs] /srv/bzr/emacs/emacs-23 r100247: Fix bug #7446 with overrunning input buffer in ebrowse.
Date: Sat, 27 Nov 2010 11:29:22 +0200
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 100247
author: Joe Matarazzo <address@hidden>
committer: Eli Zaretskii <address@hidden>
branch nick: emacs-23
timestamp: Sat 2010-11-27 11:29:22 +0200
message:
  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.
modified:
  lib-src/ChangeLog
  lib-src/ebrowse.c
=== modified file 'lib-src/ChangeLog'
--- a/lib-src/ChangeLog 2010-11-10 08:33:14 +0000
+++ b/lib-src/ChangeLog 2010-11-27 09:29:22 +0000
@@ -1,3 +1,8 @@
+2010-11-27  Joe Matarazzo  <address@hidden>  (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  <address@hidden>
 
        * emacsclient.c (set_local_socket) [DARWIN_OS]: Add fall-back

=== modified file 'lib-src/ebrowse.c'
--- a/lib-src/ebrowse.c 2010-01-11 07:51:51 +0000
+++ b/lib-src/ebrowse.c 2010-11-27 09:29:22 +0000
@@ -1784,6 +1784,11 @@
             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;
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]