aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/syscat.source
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2013-07-18 21:22:37 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2013-07-18 21:22:37 -0400
commite2bd904955e2221eddf01110b1f25002de2aaa83 (patch)
treebf7065cede18df4838ab2ae81d9d21449a571a9e /src/tutorial/syscat.source
parent4cbe3ac3e86790d05c569de4585e5075a62a9b41 (diff)
downloadpostgresql-e2bd904955e2221eddf01110b1f25002de2aaa83.tar.gz
postgresql-e2bd904955e2221eddf01110b1f25002de2aaa83.zip
Fix regex match failures for backrefs combined with non-greedy quantifiers.
An ancient logic error in cfindloop() could cause the regex engine to fail to find matches that begin later than the start of the string. This function is only used when the regex pattern contains a back reference, and so far as we can tell the error is only reachable if the pattern is non-greedy (i.e. its first quantifier uses the ? modifier). Furthermore, the actual match must begin after some potential match that satisfies the DFA but then fails the back-reference's match test. Reported and fixed by Jeevan Chalke, with cosmetic adjustments by me.
Diffstat (limited to 'src/tutorial/syscat.source')
0 files changed, 0 insertions, 0 deletions