aboutsummaryrefslogtreecommitdiff
path: root/posix/regex.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-03-24 21:15:02 +0000
committerUlrich Drepper <drepper@redhat.com>1998-03-24 21:15:02 +0000
commit09515d674a8908521fd2fbc53125c5d25b53e1ac (patch)
tree1de5de3e5d0ffdbe20fae5a93340316878585636 /posix/regex.c
parente9fc7bbb8949a781cc0d65c8a54c3b6b3b49030e (diff)
downloadglibc-09515d674a8908521fd2fbc53125c5d25b53e1ac.tar
glibc-09515d674a8908521fd2fbc53125c5d25b53e1ac.tar.gz
glibc-09515d674a8908521fd2fbc53125c5d25b53e1ac.tar.bz2
glibc-09515d674a8908521fd2fbc53125c5d25b53e1ac.zip
Update.
1998-03-24 Ulrich Drepper <drepper@cygnus.com> * posix/regex.c (regex_compile): Don't allow non-alphabet characters in character set name.
Diffstat (limited to 'posix/regex.c')
-rw-r--r--posix/regex.c2
1 files changed, 1 insertions, 1 deletions
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;