summaryrefslogtreecommitdiff
path: root/posix
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-08-23 15:22:00 -0700
committerPetr Baudis <pasky@suse.cz>2009-09-18 17:41:02 +0200
commit03cb6a1e3939a039bcd53bf862fa93f487e35488 (patch)
treeb5817b9f56f7828968f16b3c9fb61c770a9c012e /posix
parentbf1f1f4e4ab4bc44c2e3205d9d869b7c20a33d32 (diff)
Recognize ill-formed { } expressions in regcomp.
(cherry picked from commit 52db8039f54672abe6a6da5fb107fa52aca42547)
Diffstat (limited to 'posix')
-rw-r--r--posix/regcomp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/posix/regcomp.c b/posix/regcomp.c
index 4843cfea33..446fed5445 100644
--- a/posix/regcomp.c
+++ b/posix/regcomp.c
@@ -2481,7 +2481,7 @@ parse_dup_op (bin_tree_t *elem, re_string_t *regexp, re_dfa_t *dfa,
return elem;
}
- if (BE (end != -1 && start > end, 0))
+ if (BE ((end != -1 && start > end) || token->type != OP_CLOSE_DUP_NUM, 0))
{
/* First number greater than second. */
*err = REG_BADBR;