mirror of git://sourceware.org/git/glibc.git
Update.
2003-11-13 Ulrich Drepper <drepper@redhat.com> * posix/regcomp.c (parse_expression): In BRE consecutive duplications are not allowed.
This commit is contained in:
parent
f6953f16bb
commit
c34bfc8d37
|
|
@ -1,3 +1,8 @@
|
||||||
|
2003-11-13 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* posix/regcomp.c (parse_expression): In BRE consecutive
|
||||||
|
duplications are not allowed.
|
||||||
|
|
||||||
2003-11-12 Ulrich Drepper <drepper@redhat.com>
|
2003-11-12 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* posix/regcomp.c (parse_bracket_exp): If end of expression is
|
* posix/regcomp.c (parse_bracket_exp): If end of expression is
|
||||||
|
|
|
||||||
|
|
@ -2233,6 +2233,14 @@ parse_expression (regexp, preg, token, syntax, nest, err)
|
||||||
tree = parse_dup_op (tree, regexp, dfa, token, syntax, err);
|
tree = parse_dup_op (tree, regexp, dfa, token, syntax, err);
|
||||||
if (BE (*err != REG_NOERROR && tree == NULL, 0))
|
if (BE (*err != REG_NOERROR && tree == NULL, 0))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
/* In BRE consecutive duplications are not allowed. */
|
||||||
|
if ((syntax & RE_CONTEXT_INVALID_DUP)
|
||||||
|
&& (token->type == OP_DUP_ASTERISK
|
||||||
|
|| token->type == OP_OPEN_DUP_NUM))
|
||||||
|
{
|
||||||
|
*err = REG_BADRPT;
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
dfa->has_plural_match = 1;
|
dfa->has_plural_match = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue