[pcre-dev] [Bug 1519] pcre_compile crash on solaris

Top Page

Reply to this message
Author: Prashant Joshi
To: pcre-dev
Subject: [pcre-dev] [Bug 1519] pcre_compile crash on solaris
------- You are receiving this mail because: -------
You are on the CC list for the bug.


--- Comment #8 from Prashant Joshi <pjoshi@???> 2014-09-24 08:20:41 ---
Hi ,

Below two scenarios we got as an error:

Example 1:

Regex   /.*The task.*\(GPD\) +PreGPD +for +Binary +Load +\(GSMO\).*failed.*/   

Text    7/16/2014 08:02:19.9752128      Error   The task "(GPD) PreGPD for
Binary Load (GSMO)" failed. Exception:

Example 2:

Regex   /^[c]\s*[a]\s*[t]\s*[s]\s*/
Text    this will find the word cats or c a ts or any spaces in between the
word cats.

One thing we observed , issue is happening with Windows and Linux and on
Solaris it is working fine.

On windows and Linux we are using below code:

options = options | PCRE_UTF8;
table = pcre_maketables();
pattern = pcre_compile(outStr, options, &error, &errptr,table);

On Solaris we are using below:

pattern = pcre_compile(str, options, &error, &errptr,NULL);

Can option of PCRE_UTF8 make any difference?

Prashant Joshi

-----Original Message-----
From: admin@??? [mailto:admin@bugs.exim.org] On Behalf Of Philip
Sent: Friday, September 19, 2014 9:37 PM
To: Prashant Joshi - ERS, HCL Tech
Subject: [Bug 1519] pcre_compile crash on solaris

------- You are receiving this mail because: -------
You reported the bug.


--- Comment #7 from Philip Hazel <ph10@???> 2014-09-19 17:06:37
On Fri, 19 Sep 2014, Prashant Joshi wrote:

> --- Comment #6 from Prashant Joshi <pjoshi@???> 2014-09-19 16:35:23 ---
> It is typo in message.

In that case, please can you send a sample pattern and subject text that
shows the problem? Needless to say, the standard tests for PCRE have
lots and lots of examples of \s, and the main developement takes place
on Linux.

Preferably, if you can, it would be good if you could make an example
input file for pcretest that shows the problem.


Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email


The contents of this e-mail and any attachment(s) are confidential and intended
for the named recipient(s) only.
E-mail transmission is not guaranteed to be secure or error-free as information
could be intercepted, corrupted,
lost, destroyed, arrive late or incomplete, or may contain viruses in
transmission. The e mail and its contents
(with or without referred errors) shall therefore not attach any liability on
the originator or HCL or its affiliates.
Views or opinions, if any, presented in this email are solely those of the
author and may not necessarily reflect the
views or opinions of HCL or its affiliates. Any form of reproduction,
dissemination, copying, disclosure, modification,
distribution and / or publication of this message without the prior written
consent of authorized representative of
HCL is strictly prohibited. If you have received this email in error please
delete it and notify the sender immediately.
Before opening any email and/or attachments, please check them for viruses and
other defects.


Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email