Modify

Opened 11 years ago

Closed 11 years ago

#2997 closed Bug (Fixed)

Bug in PCRE

Reported by: jchd18 Owned by: Jon
Milestone: 3.3.15.0 Component: AutoIt
Version: 3.3.14.0 Severity: None
Keywords: Cc:

Description

A bug in recent releases of the PCRE library has been reported which may affect users running the 3.3.13.19 beta (the 3.3.12.0 release is OK):

In caseless utf modes, it is possible for character classes to be missing the lowercase version of some ascii characters.

Example below shows that the beta gives a wrong result (the range a-j is missed), yet the release behaves correctly:

ConsoleWrite(StringRegExpReplace("ABCDEFGHIJKLmonpqrstuvwxyz[\]^_` 123456 abcdefgijklmnopqrstuvwxyz", "(?i)([A-`])", "*") & @LF)

Advice: if you need the beta, make character ranges in classes more explicit, until Dev team can link a fixed version of PCRE in a new AutoIt beta or release.

Remark: no change in PCRE can be found in the changelog between release 3.3.12.0 and beta 3.3.13.19 but the code sample above clearly demonstrate they don't use the same PCRE version.

Attachments (0)

Change History (9)

comment:1 by J-Paul Mesnage, 11 years ago

In fact PCRE has been updated to 8.35 in 3.3.13.13
It can be related I will check

comment:2 by J-Paul Mesnage, 11 years ago

After a test 8.35 induce the regression if it is really a regression

comment:3 by jchd18, 11 years ago

Yes it is. It also crept in PCRE2 (10.00 and 10.10RC2 exhibit the same bug). No doubt it will be fixed soon by Philip Hazel & co.

comment:4 by J-Paul Mesnage, 11 years ago

Is it reported to Phillip Hazel?
Any new if PCRE2 (10.20)?

comment:5 by jchd18, 11 years ago

The bug was reported to the dev list and quickly fixed some time ago.
PCRE2 is moving forward. There is a RC being tested but I expect some time before the dust settles.

comment:6 by jchd18, 11 years ago

I notice that the last release (3.3.14.0) dated 2015-07-10 uses PCRE v8.35 (dated 2014-04-04) instead of the last available version, 8.37 dated 2015-04-28. This explains why the bug in this "ticket" (rather a notice) can still show.

comment:7 by J-Paul Mesnage, 11 years ago

I confirm 8.37 is solving the pb

comment:8 by jchd18, 11 years ago

Summary: Bug in PCRE (only in 3.3.13.19 beta)Bug in PCRE
Version: 3.3.13.193.3.14.0

comment:9 by Jon, 11 years ago

Milestone: 3.3.15.0
Owner: set to Jon
Resolution: Fixed
Status: newclosed

Fixed by revision [11405] in version: 3.3.15.0

Modify Ticket

Action
as closed The owner will remain Jon.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.