unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Fix infinite loop in tex file handling in etags
@ 2006-08-07  4:01 Masatake YAMATO
  2006-08-08  9:33 ` Jan Djärv
  0 siblings, 1 reply; 6+ messages in thread
From: Masatake YAMATO @ 2006-08-07  4:01 UTC (permalink / raw)


Could someone install this patch, too?

2006-08-07  Masatake YAMATO  <jet@gyve.org>

	* 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;

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-08-14 14:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-07  4:01 Fix infinite loop in tex file handling in etags Masatake YAMATO
2006-08-08  9:33 ` Jan Djärv
2006-08-12 13:46   ` Francesco Potorti
2006-08-12 14:24     ` Jan D.
2006-08-14  8:35     ` Masatake YAMATO
2006-08-14 14:29       ` Francesco Potorti

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).