[pcre-dev] [Bug 1440] pcre_compile hangs on certain pattern …

Pàgina inicial
Delete this message
Autor: Philip Hazel
Data:  
A: pcre-dev
Assumpte: [pcre-dev] [Bug 1440] pcre_compile hangs on certain pattern when PCRE_UCP is used
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1440




--- Comment #5 from Philip Hazel <ph10@???> 2014-02-11 10:13:24 ---
On Mon, 10 Feb 2014, Graycode wrote:

> --- Comment #4 from Graycode <xgcode@???> 2014-02-10 18:17:59 ---
> (In reply to comment #2)
> > I cannot test your program on a Windows system, because I do not have one.
> > However, on a 64-bit Linux system, it does not loop.
>
> The expression compiles fine using pcretest in my Windows (32-bit).


Thanks for testing.

> Perhaps the author should have initialized string ErrPtr before printing
> with it following a successful compile of the expression.
> I don't remember whether PCRE touches ErrPtr when there's no error,
> and wonder if the issue could involve the printf() vs. PCRE.


Good point. PCRE sets ErrPtr to NULL when there is no error. When I
run the test program on a Linux box, the printf produces this:

0x0195E010, '(null)', 0

A different compiler/runtime system could behave differently.

Philip


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