Page MenuHomeFreeBSD

regex(3): Correct branching oversight from rS320742
ClosedPublic

Authored by kevans on Jul 7 2017, 6:22 PM.
Tags
None
Referenced Files
F151053718: D11522.id.diff
Sun, Apr 5, 4:36 PM
F151034832: D11522.diff
Sun, Apr 5, 2:09 PM
Unknown Object (File)
Sat, Mar 28, 11:40 PM
Unknown Object (File)
Sat, Mar 14, 10:36 PM
Unknown Object (File)
Fri, Mar 13, 6:08 AM
Unknown Object (File)
Fri, Mar 6, 8:21 PM
Unknown Object (File)
Mar 5 2026, 10:35 PM
Unknown Object (File)
Mar 2 2026, 8:05 PM
Subscribers

Details

Summary

Correctly ignore branch operators in the top-level parser when applicable.

An oversight in rS320742 caused BREs to become sensitive to the branching operator prematurely, which caused
breakage in some limited situations -- namely, those that tried to use branching in a BRE. Most of these scenarios
had already been corrected beforehand to properly use gsed or grep for GNU extensions, so the damage is
slightly mitigated.

Reported by: antoine

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Can we add a base test to catch this?

This revision is now accepted and ready to land.Jul 7 2017, 6:47 PM
This revision was automatically updated to reflect the committed changes.