touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #75011
[Bug 1361610] Re: libPCRE3 8.31 regex matching is not working
In Ubuntu 14.04, libPocoFoundation.so has some global variables of pcre.
I found the executable which links both libPocoFoundation.so and libpcre.so outputs wrong results by pcre functions.
nm -D --defined-only /usr/lib/libPocoFoundation.so | grep pcre
0000000000110800 R _pcre_OP_lengths
000000000010f2a0 R _pcre_ucd_records
000000000010d0a0 R _pcre_ucd_stage1
00000000001032a0 R _pcre_ucd_stage2
00000000001106e0 R _pcre_ucp_gentype
00000000001107e0 R _pcre_utf8_table1
00000000001107d8 R _pcre_utf8_table1_size
00000000001107c0 R _pcre_utf8_table2
00000000001107a0 R _pcre_utf8_table3
0000000000110760 R _pcre_utf8_table4
0000000000110120 R _pcre_utt
00000000001103e0 R _pcre_utt_names
0000000000110100 R _pcre_utt_size
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to pcre3 in Ubuntu.
https://bugs.launchpad.net/bugs/1361610
Title:
libPCRE3 8.31 regex matching is not working
Status in pcre3 package in Ubuntu:
Confirmed
Status in poco package in Ubuntu:
Confirmed
Bug description:
It looks like that libPCRE3 8.31 included in Ubuntu 13.10 does not
handle regex matching alright. This also affects the libPocoFoundation
RegularExpression classes.
I attached a proof-of-concept which tests a good and bad heystack
string to a regex pattern with Poco, Boost and PCRE. I tested it on
two different machines with the following output:
Ubuntu 13.10 3.11.0-13-generic #20-Ubuntu SMP Wed Oct 23 17:26:33 UTC 2013 i686 i686 i686 GNU/Linux
Poco 0x01030600 on Linux 3.11.0-13-generic @ i686
Poco match 1234567890 to pattern ^[0-9]{10} matches? no --> NOT CORRECT
Poco match 123456789 to pattern ^[0-9]{10} matches? no
Boost match 1234567890 to pattern ^[0-9]{10} matches? yes
Boost match 123456789 to pattern ^[0-9]{10} matches? no
PCRE 8.31 2012-07-06
PCRE match 1234567890 to pattern ^[0-9]{10} matches? yes
PRCE match 123456789 to pattern ^[0-9]{10} matches? yes --> NOT CORRECT
Ubuntu 12.04.3 LTS 3.8.0-29-generic #42~precise1-Ubuntu SMP Wed Aug 14 15:31:16 UTC 2013 i686 i686 i386 GNU/Linux
Poco 0x01030600 on Linux 3.8.0-29-generic @ i686
Poco match 1234567890 to pattern ^[0-9]{10} matches? yes --> OK
Poco match 123456789 to pattern ^[0-9]{10} matches? no
Boost match 1234567890 to pattern ^[0-9]{10} matches? yes
Boost match 123456789 to pattern ^[0-9]{10} matches? no
PCRE 8.12 2011-01-15
PCRE match 1234567890 to pattern ^[0-9]{10} matches? yes
PRCE match 123456789 to pattern ^[0-9]{10} matches? no --> OK
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pcre3/+bug/1361610/+subscriptions
References