From 09515d674a8908521fd2fbc53125c5d25b53e1ac Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 24 Mar 1998 21:15:02 +0000 Subject: Update. 1998-03-24 Ulrich Drepper * posix/regex.c (regex_compile): Don't allow non-alphabet characters in character set name. --- posix/regex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'posix/regex.c') 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; -- cgit 1.4.1