[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fix infinite loop in tex file handling in etags
From: |
Masatake YAMATO |
Subject: |
Fix infinite loop in tex file handling in etags |
Date: |
Mon, 07 Aug 2006 13:01:10 +0900 (JST) |
Could someone install this patch, too?
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;
- Fix infinite loop in tex file handling in etags,
Masatake YAMATO <=