Bug 756675

Summary: UTF-8 caseless match misses pairs with different encoding length
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: 16CC: c.david86, lkundrak, ppisar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://bugs.exim.org/show_bug.cgi?id=1179
Whiteboard:
Fixed In Version: pcre-8.12-5.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 759475 (view as bug list) Environment:
Last Closed: 2011-12-10 19:35:56 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
Fix from upstream none

Description Petr Pisar 2011-11-24 09:08:42 UTC
From upstream <http://bugs.exim.org/show_bug.cgi?id=1179>:

$ pcretest 
PCRE version 8.12 2011-01-15

  re> /ⱥ/8i
data> ⱥ
 0: \x{2c65}
data> Ⱥ
No match
data> Ⱥ_
 0: \x{23a}

The lower-cased variant occupies 3 bytes while the upper-cased variant 2 bytes only. If padding in input exists, the match occurs.

Comment 1 Petr Pisar 2011-12-02 08:06:04 UTC
Upstream states this issue has been fixed by commit:

r778 | ph10 | 2011-12-01 18:38:47 +0100 (Thu, 01 Dec 2011) | 3 lines

Fix bug with caseless matching of characters of different lengths when the 
shorter is right at the end of the subject.

Comment 2 Petr Pisar 2011-12-02 10:49:25 UTC
Created attachment 539583 [details]
Fix from upstream

Comment 3 Petr Pisar 2011-12-02 10:58:26 UTC
F17--14 affected.

Comment 4 Fedora Update System 2011-12-02 12:42:28 UTC
pcre-8.12-6.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/FEDORA-2011-16271/pcre-8.12-6.fc16

Comment 5 Fedora Update System 2011-12-02 12:48:28 UTC
pcre-8.12-5.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/FEDORA-2011-16286/pcre-8.12-5.fc15

Comment 6 Fedora Update System 2011-12-02 12:50:20 UTC
pcre-8.10-4.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/FEDORA-2011-16245/pcre-8.10-4.fc14

Comment 7 Fedora Update System 2011-12-04 02:26:42 UTC
Package pcre-8.12-5.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing pcre-8.12-5.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-16286/pcre-8.12-5.fc15
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2011-12-10 19:35:56 UTC
pcre-8.12-6.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2011-12-21 17:00:48 UTC
pcre-8.12-5.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.