Bug 735720

Summary: pcre-8.13: infinite matching
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: pcreAssignee: Petr Pisar <ppisar>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: lkundrak, ppisar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://lists.exim.org/lurker/message/20110904.203623.a32346f3.en.html
Whiteboard:
Fixed In Version: pcre-8.13-4.fc17 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-09-06 16:16:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Petr Pisar 2011-09-05 07:40:24 UTC
$ pcretest 
PCRE version 8.13 2011-08-16

  re> /(?>(?&t)c|(?&t))(?(DEFINE)(?<t>a|b(*PRUNE)c))/s
data> ba
Error -26 (nested recursion at the same subject position)
data> bba
^C
[loop]

While pcre-8.12 gives:

$ pcretest 
PCRE version 8.12 2011-01-15

  re> /(?>(?&t)c|(?&t))(?(DEFINE)(?<t>a|b(*PRUNE)c))/s
data> ba
 0: a
data> bba
 0: a
data> 


This is regression reported to upstream.