Bug 1111054 - Character class with literal quotation is miscompiled
Summary: Character class with literal quotation is miscompiled
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: pcre
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Pisar
QA Contact: Fedora Extras Quality Assurance
URL: http://bugs.exim.org/show_bug.cgi?id=...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-19 07:08 UTC by Petr Pisar
Modified: 2016-06-14 15:41 UTC (History)
3 users (show)

Fixed In Version: pcre-8.35-3.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1111091 (view as bug list)
Environment:
Last Closed: 2016-06-14 15:41:03 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.