Overview
| Artifact ID: | 49e61512520c8dfc333d01eef25902d5ff3b02699e09749469ae25434d4d530a |
|---|---|
| Ticket: | 75c9d9cece5612408603f4e56773f55ada24b2d7
regexp sometimes allows an invalid backref to be matched |
| User & Date: | serhiy.storchaka on 2026-10-10 19:29:32 |
Changes
- foundin changed to: "8.6.18, 9.0.5, 9.1.0"
- icomment:
Still the same in 8.6, 9.0 and 9.1. When the right side of a concatenation failed, <tt>ccondissect()</tt> and <tt>crevcondissect()</tt> left the captures of the left side set, so the next alternative's backref saw them. Proposed fix in branch [/timeline?r=regexp-backref-failed-alt|regexp-backref-failed-alt]: your PostgreSQL change, which clears the left side's captures when the right side fails and defines the cdissect() rules for clearing match data. Tests reg-14.30 and 14.31 (your examples).
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"