emacs-devel
[Top][All Lists]
Advanced

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

Re: Fix infinite loop in tex file handling in etags


From: Jan Djärv
Subject: Re: Fix infinite loop in tex file handling in etags
Date: Tue, 08 Aug 2006 11:33:24 +0200
User-agent: Thunderbird 1.5.0.4 (X11/20060614)



Masatake YAMATO skrev:
Could someone install this patch, too?


Done.

        Jan D.

2006-08-07  Masatake YAMATO  <address@hidden>

        * etags.c (TEX_mode): Check getc retruns EOF.
        File ended without newline causes infinite loop.

--- orig/lib-src/etags.c
+++ mod/lib-src/etags.c
@@ -5198,7 +5198,7 @@
     {
       /* Skip to next line if we hit the TeX comment char. */
       if (c == '%')
-       while (c != '\n')
+       while (c != '\n' && c != EOF)
          c = getc (inf);
       else if (c == TEX_LESC || c == TEX_SESC )
        break;


_______________________________________________
Emacs-devel mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-devel




reply via email to

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