From: Ulrich Drepper Date: Thu, 13 Nov 2003 06:38:30 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/glibc-2_3_3~63 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f6953f16bb49383a162560662778a377e4501039;p=thirdparty%2Fglibc.git Update. * posix/regcomp.c (parse_bracket_exp): If end of expression is seen, return EBRACK error, not BADPAT. --- diff --git a/ChangeLog b/ChangeLog index 12a5a0cd0d9..1cc7df9921c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2003-11-12 Ulrich Drepper + * posix/regcomp.c (parse_bracket_exp): If end of expression is + seen, return EBRACK error, not BADPAT. + * posix/regcomp.c (parse_expression): If token is OP_OPEN_DUP_NUM and RE_CONTEXT_INVALID_DUP syntax flag is set, fail. * posix/regex.h (RE_CONTEXT_INVALUD_OPS): New macro. diff --git a/posix/regcomp.c b/posix/regcomp.c index c404929811b..531ec94f751 100644 --- a/posix/regcomp.c +++ b/posix/regcomp.c @@ -2993,7 +2993,7 @@ parse_bracket_exp (regexp, dfa, token, syntax, err) token_len = peek_token_bracket (token, regexp, syntax); if (BE (token->type == END_OF_RE, 0)) { - *err = REG_BADPAT; + *err = REG_EBRACK; goto parse_bracket_exp_free_return; } if (token->type == OP_CHARSET_RANGE)