Bug 756675 - UTF-8 caseless match misses pairs with different encoding length
Summary: UTF-8 caseless match misses pairs with different encoding length
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: pcre
Version: 16
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: 2011-11-24 09:08 UTC by Petr Pisar
Modified: 2011-12-21 17:00 UTC (History)
3 users (show)

Fixed In Version: pcre-8.12-5.fc15
Clone Of:
: 759475 (view as bug list)
Environment:
Last Closed: 2011-12-10 19:35:56 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Fix from upstream (3.40 KB, patch)
2011-12-02 10:49 UTC, Petr Pisar
no flags Details | Diff

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.


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