Autor: ph10 Data: A: 1440 CC: pcre-dev Assumpte: Re: [pcre-dev] [Bug 1440] pcre_compile hangs on certain pattern
when PCRE_UCP is used
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.