(regex_compile): Don't allow non-alphabet characters in character set name.
authordrepper <drepper>
Tue, 24 Mar 1998 21:13:59 +0000 (21:13 +0000)
committerdrepper <drepper>
Tue, 24 Mar 1998 21:13:59 +0000 (21:13 +0000)
posix/regex.c

index bf0e7c4..626244f 100644 (file)
@@ -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;