diff options
author | Ulrich Drepper <drepper@redhat.com> | 2009-08-23 15:22:00 -0700 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2009-08-23 15:22:00 -0700 |
commit | 52db8039f54672abe6a6da5fb107fa52aca42547 (patch) | |
tree | 4498b3bc09bfb3a25869ccbd6a6b09cb57bbb2e5 /posix | |
parent | bdc7f5d76b4f284475595dddc79f0e0f9720ec20 (diff) | |
download | glibc-52db8039f54672abe6a6da5fb107fa52aca42547.zip glibc-52db8039f54672abe6a6da5fb107fa52aca42547.tar.gz glibc-52db8039f54672abe6a6da5fb107fa52aca42547.tar.bz2 |
Recognize ill-formed { } expressions in regcomp.
Diffstat (limited to 'posix')
-rw-r--r-- | posix/regcomp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/posix/regcomp.c b/posix/regcomp.c index 4843cfe..446fed5 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; |