[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-idutils] [PATCH] mkid loops endlessly
From: |
Petr Machata |
Subject: |
[bug-idutils] [PATCH] mkid loops endlessly |
Date: |
Thu, 19 Jul 2007 17:58:52 +0200 |
User-agent: |
Thunderbird 1.5.0.12 (X11/20070530) |
Hi,
I've found that "mkid" loops endlessly on certain files. I tracked the
problem down to the following string stored in .el file:
"\"?[A"
(including quotes)
Patch against released 4.2 included.
Regards,
PM
diff -urp idutils-4.2/libidu/scanners.c idutils-4.2-pm/libidu/scanners.c
--- idutils-4.2/libidu/scanners.c 2006-07-22 04:27:00.000000000 +0200
+++ idutils-4.2-pm/libidu/scanners.c 2007-07-19 17:43:04.000000000 +0200
@@ -1639,7 +1640,10 @@ get_token_lisp (FILE *in_FILE, void cons
if (c == '\\')
{
c = getc (in_FILE);
- continue;
+ if (c != EOF)
+ goto string;
+ else
+ break;
}
} while ( (c != EOF) && (c != '"'));
goto top;
signature.asc
Description: OpenPGP digital signature
- [bug-idutils] [PATCH] mkid loops endlessly,
Petr Machata <=