[PATCH 1/2] Revert previous patch, as it did not fix the bug after all.

2015-09-19 Thread Paul Eggert
--- ChangeLog | 10 -- lib/regexec.c | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1daec1d..f846aac 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,15 +1,5 @@ 2015-09-19 Paul Eggert - regex: fix dangling-backreference bug -

[PATCH 2/2] Diagnose ERE '()|\1'

2015-09-19 Thread Paul Eggert
Problem reported by Hanno Böck in: http://bugs.gnu.org/21513 * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep track of the set of previously-completed subexpressions available before the first alternative, and restore this set just before parsing each subsequent alternative. This

[PATCH 2/2] regex: fix dangling-backreference bug

2015-09-19 Thread Paul Eggert
This should fix the following bugs: http://bugs.gnu.org/21513 assertion error in pop_fail_stack http://bugs.gnu.org/19775 Test failing after the CVE fix https://sourceware.org/bugzilla/show_bug.cgi?id=11053 Wrong results with backreferences https://sourceware.org/bugzilla/show_bug.cgi?id=17356 rege

[PATCH 1/2] regex: merge patches from libc

2015-09-19 Thread Paul Eggert
2015-09-08 Joseph Myers Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912). * lib/regex_internal.h: Include instead of . 2015-06-09 Joseph Myers Fix regcomp wcscoll, wcscmp namespace (bug 18497). * lib/regcomp.c (build_range_exp): Call __wcscoll instead of wcscoll. * lib/r