mirror of git://sourceware.org/git/glibc.git
(parse_dup_op): Fail with REG_BADBR is first number in {,} expression is larger.
This commit is contained in:
parent
b27eea96b9
commit
deeb4aae69
|
|
@ -2412,6 +2412,12 @@ parse_dup_op (dup_elem, regexp, dfa, token, syntax, err)
|
||||||
goto parse_dup_op_espace;
|
goto parse_dup_op_espace;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (BE (start > end, 0))
|
||||||
|
{
|
||||||
|
/* First number greater than first. */
|
||||||
|
*err = REG_BADBR;
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
else if (end - start > 0)
|
else if (end - start > 0)
|
||||||
{
|
{
|
||||||
/* Then extract "<re>{0,m}" to "<re>?<re>?...<re>?". */
|
/* Then extract "<re>{0,m}" to "<re>?<re>?...<re>?". */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue