mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
Update.
1998-03-24 Ulrich Drepper <drepper@cygnus.com> * posix/regex.c (regex_compile): Don't allow non-alphabet characters in character set name.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user