Bug 703140

Summary: Problems with caseless reference matching in UTF-8 mode when the upper/lower case characters have different lengths
Product: Red Hat Enterprise Linux 6 Reporter: Petr Pisar <ppisar>
Component: pcreAssignee: Petr Pisar <ppisar>
Status: CLOSED WONTFIX QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: low Docs Contact:
Priority: low    
Version: 6.1CC: lkundrak, ppisar
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://bugs.exim.org/show_bug.cgi?id=1074
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 702623 Environment:
Last Closed: 2014-10-21 12:36:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Simple testcase none

Description Petr Pisar 2011-05-09 12:26:35 UTC
+++ This bug was initially created as a clone of Bug #702623 +++

E.g. pcretest input:

/(ȺȺȺ)?\1/8i
    ȺȺȺⱥⱥ

should not match (the thirds lower `ⱥ' is missing) but pcre <= 8.12 states falsely:

 0: \x{23a}\x{23a}\x{23a}\x{2c65}\x{2c65}
 1: \x{23a}\x{23a}\x{23a}

This is fixed in development SVN tree in commits 

r595 | ph10 | 2011-05-02 12:33:29 +0200 (Po, 02 kvě 2011) | 3 lines
Fix problems with caseless reference matching in UTF-8 mode when the 
upper/lower case characters have different lengths.

and 

r597 | ph10 | 2011-05-02 19:08:52 +0200 (Po, 02 kvě 2011) | 2 lines
Complete incomplete fix for UTF-8 caseless references of different lengths.

This bug is tracked by upstream at <http://bugs.exim.org/show_bug.cgi?id=1074>.

All Fedoras affected (pcre-8.12-2.fc15.x86_64 through pcre-7.8-3.fc12.x86_64).

--- Additional comment from ppisar on 2011-05-09 11:59:30 GMT ---

Created attachment 497774 [details]
Fix ported from upstream

Fix including tests ported from upstream to pcre-8.12.

----
RHEL-6.1 affected (pcre-7.8-3.1.el6.x86_64).

Comment 2 Petr Pisar 2011-05-09 12:38:56 UTC
Created attachment 497778 [details]
Simple testcase

This performs a case from upstream test suite. See into the patch for more cases.

Comment 3 RHEL Program Management 2011-05-09 12:47:42 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 4 Petr Pisar 2011-10-27 08:33:35 UTC
The upstream fix is hard to back-port to 7.8. See cloning bug for the effort.

Comment 5 Petr Pisar 2014-10-21 12:36:12 UTC
Because porting a fix for this bug very difficult, we will not fix it issue.