summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane2013-07-19 01:23:04 +0000
committerTom Lane2013-07-19 01:23:04 +0000
commit57ddea3a276896eaa5bf533f24487c9a9a672d2a (patch)
treebf06eb3945ac95247b58c7ecb88e0fba7a60e041 /doc/src
parent4285fb9ff5adb8449576b242908ae646a0e959b4 (diff)
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 'doc/src')
0 files changed, 0 insertions, 0 deletions