Bug 755969

Summary: Forward reference doesn't work when repeated twice or more
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: pcreAssignee: Petr Pisar <ppisar>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: c.david86, lkundrak, ppisar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://lists.pcre.org/lurker/message/20111121.203922.3cfd476e.en.html
Whiteboard:
Fixed In Version: pcre-8.12-5.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 756105 (view as bug list) Environment:
Last Closed: 2011-12-10 19:35:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Pisar 2011-11-22 14:58:05 UTC
Fetch following input to pcretest:

/(a)(?2){2}(.)/
abcd

It should match as well as /(a)(..)(.)/, but it doesn't with pcre-8.12-4.fc16.x86_64.

This is fixed in SVN commit r762.

Comment 1 Petr Pisar 2011-11-22 15:01:42 UTC
(In reply to comment #0)
> It should match as well as /(a)(..)(.)/, but it doesn't
Actually as /(a)(?:..)(.)/ because subroutine is not capturing.

Comment 2 Petr Pisar 2011-11-22 15:09:39 UTC
Affected F17 (pcre-8.20-4.fc17.x86_64), F16, F15 (pcre-8.12-3.fc15.x86_64), F14 (pcre-8.10-2.fc14.x86_64).

Comment 3 Petr Pisar 2011-11-22 15:50:51 UTC
Fixed by pcre-8.20-5.fc17 in F17.

Comment 4 Fedora Update System 2011-11-22 16:50:04 UTC
pcre-8.12-5.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/pcre-8.12-5.fc16

Comment 5 Fedora Update System 2011-11-22 16:50:43 UTC
pcre-8.12-4.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/pcre-8.12-4.fc15

Comment 6 Fedora Update System 2011-11-22 16:58:10 UTC
pcre-8.10-3.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/pcre-8.10-3.fc14

Comment 7 Fedora Update System 2011-11-23 00:54:45 UTC
Package pcre-8.10-3.fc14:
* should fix your issue,
* was pushed to the Fedora 14 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing pcre-8.10-3.fc14'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-16245/pcre-8.10-3.fc14
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2011-12-10 19:35:50 UTC
pcre-8.12-6.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2011-12-21 17:00:41 UTC
pcre-8.12-5.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.