]> Savannah Git Hosting - gnulib.git/commit
Diagnose ERE '()|\1'
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 19 Sep 2015 20:53:34 +0000 (13:53 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 19 Sep 2015 20:54:20 +0000 (13:54 -0700)
commit5513b40999149090987a0341c018d05d3eea1272
tree6b9c51a1e7c08eef86119e6c436ae490d8da0482
parentc9ff68cb20dab6d3f066c5474e4faf7066361a84
Diagnose ERE '()|\1'

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 lets us diagnose the
invalid back-reference in the ERE '()|\1'.
ChangeLog
lib/regcomp.c