Bug 1217100

Summary: Crash when matching /\C\X*/ in UTF-8 mode
Product: Red Hat Enterprise Linux 7 Reporter: Petr Pisar <ppisar>
Component: pcreAssignee: Petr Pisar <ppisar>
Status: CLOSED DEFERRED QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.1Keywords: Patch
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1210576 Environment:
Last Closed: 2015-05-18 07:39:30 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:
Attachments:
Description Flags
Upsream fix ported to 8.32 none

Description Petr Pisar 2015-04-29 14:33:34 UTC
Created attachment 1020210 [details]
Upsream fix ported to 8.32

+++ This bug was initially created as a clone of Bug #1210576 +++

This command crashes:

$ printf '%s\n%s\n' '/\C\X*QT/8' 'Ӆ\x0aT' | pcretest

Fixed with upstream commit:

commit 4a81b0ca19da65ea9a50c208017a74e55c3fd027
Author: ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>
Date:   Wed Apr 8 16:34:24 2015 +0000

    Fix backtracking bug for \C\X* in UTF mode.
    
    
    git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1545 2f5784b3-3f2a-0410-8824-cb99058d5e15


This command crashes:

$ printf '%s\n%s\n' '/\C(\W?ſ)'"'"'?{{/8' '\\C(\\W?ſ)'"'"'?{{' | pcretest

Fixed with upstream commit:

commit 6719c2cdeb7670d4bf10f15a8511ca15af7ea595
Author: ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>
Date:   Wed Apr 8 16:56:28 2015 +0000

    Fix other cases of backtracking crashes after \C in UTF mode.
    
    
    git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1546 2f5784b3-3f2a-0410-8824-
cb99058d5e15

All Fedoras are affected.

[...]
------

pcre-8.32-14.el7.x86_64 is affected.

Comment 1 Petr Pisar 2015-04-29 14:35:09 UTC
I'm not much confident regarding this port, but it works and I did not found any regressions.