From 15635c25ae5510ab7b7009bf59015ef14bf48fac Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Thu, 1 Jun 2006 18:09:40 +0000 Subject: [PATCH] (getid): Restrict identifier syntax: outlaw conditional operators <>=# and meta-character ". --- src/lib/common/xundump.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/common/xundump.c b/src/lib/common/xundump.c index 8d9b32bb..f0566af0 100644 --- a/src/lib/common/xundump.c +++ b/src/lib/common/xundump.c @@ -124,7 +124,8 @@ static int getid(FILE *fp, char *buf) { int n; - if (fscanf(fp, "%1023[^#() \t\n]%n", buf, &n) != 1 || !isalpha(buf[0])) + if (fscanf(fp, "%1023[^#()<>=#\" \t\n]%n", buf, &n) != 1 + || !isalpha(buf[0])) return -1; return n; }