projects
/
external
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b27eea9
)
(parse_dup_op): Fail with REG_BADBR is first number in {,} expression is larger.
author
Ulrich Drepper
<drepper@redhat.com>
Thu, 13 Nov 2003 17:25:46 +0000
(17:25 +0000)
committer
Ulrich Drepper
<drepper@redhat.com>
Thu, 13 Nov 2003 17:25:46 +0000
(17:25 +0000)
posix/regcomp.c
patch
|
blob
|
history
diff --git
a/posix/regcomp.c
b/posix/regcomp.c
index
9a48aa3
..
0dee2e6
100644
(file)
--- a/
posix/regcomp.c
+++ b/
posix/regcomp.c
@@
-2412,6
+2412,12
@@
parse_dup_op (dup_elem, regexp, dfa, token, syntax, err)
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)
{
/* Then extract "<re>{0,m}" to "<re>?<re>?...<re>?". */