aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--posix/regex.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 06a1db4f27..786b71aece 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1998-03-24 Ulrich Drepper <drepper@cygnus.com>
+
+ * posix/regex.c (regex_compile): Don't allow non-alphabet
+ characters in character set name.
+
1998-03-25 00:00 Tim Waugh <tim@cyberelk.demon.co.uk>
* posix/wordexp.c (w_newword): New function.
diff --git a/posix/regex.c b/posix/regex.c
index bf0e7c46cc..626244f662 100644
--- a/posix/regex.c
+++ b/posix/regex.c
@@ -2168,7 +2168,7 @@ regex_compile (pattern, size, syntax, bufp)
for (;;)
{
PATFETCH (c);
- if (c == ':' || c == ']' || p == pend
+ if (c == ':' || c == ']' || !isalpha (c) || p == pend
|| c1 == CHAR_CLASS_MAX_LENGTH)
break;
str[c1++] = c;