Bug 1111054

Summary: Character class with literal quotation is miscompiled
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: 22CC: c.david86, lkundrak, ppisar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://bugs.exim.org/show_bug.cgi?id=1494
Whiteboard:
Fixed In Version: pcre-8.35-3.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1111091 (view as bug list) Environment:
Last Closed: 2016-06-14 15:41:03 UTC Type: Bug
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 2014-06-19 07:08:44 UTC
This should match:

$ printf '%s\n%s\n' '/[\Qa]\E]+/' 'a' | ./pcretest -d
PCRE version 8.35 2014-04-04

  re> ------------------------------------------------------------------
  0   7 Bra
  3     a
  5     ]++
  7   7 Ket
 10     End
------------------------------------------------------------------
Capturing subpattern count = 0
No options
First char = 'a'
Need char = ']'
data> No match
data> 

Upstream fixed it by:

commit 8d8c3dbadff3d0735ba696acf211c14b3025622f
Author: ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>
Date:   Wed Jun 18 17:17:03 2014 +0000

    Fix bad compile of [\Qx]...  where x is any character.
    
    
    git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1487 2f5784b3-3f2a-0410-8824-cb99058d5e15

Comment 1 Petr Pisar 2014-06-19 07:15:20 UTC
All Fedoras are affected.

Comment 2 Fedora Update System 2014-06-19 08:15:47 UTC
pcre-8.33-5.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/pcre-8.33-5.fc20

Comment 3 Fedora Update System 2014-06-19 08:31:15 UTC
pcre-8.32-9.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/pcre-8.32-9.fc19

Comment 4 Fedora Update System 2014-07-05 14:54:20 UTC
pcre-8.32-9.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Fedora Update System 2014-07-05 14:57:45 UTC
pcre-8.33-5.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Jaroslav Reznik 2015-03-03 17:18:46 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22