Re: [pcre-dev] PCRE_STUDY_JIT_COMPILE option bug?

Top Page

Reply to this message
Author: Ervin Hegedüs
To: pcre-dev
Subject: Re: [pcre-dev] PCRE_STUDY_JIT_COMPILE option bug?
Hi Philip,

On Sun, Jan 27, 2019 at 08:50:55AM +0000, ph10@??? wrote:
> On Sat, 26 Jan 2019, Ervin Hegedüs via Pcre-dev wrote:
> > (Note, that there is a 3rd solution, we ignore the
> > PCRE_STUDY_JIT_COMPILE flag, and uses pcre_study() without that...)
> And, it occurs to me overnight, there may be another "solution". Do you
> actually use the values of the captured substrings?

I have to check it deeper, but as I remember, we're using them.

> If all you are
> interested in is whether or not the pattern matches, all you need to do
> is change the test of the return code from > 0 to >= 0 and you are done.
> Alternatively, set the PCRE_NO_AUTO_CAPTURE option on pcre_compile() and
> it won't capture anything.

thanks for this important note - but I think we can't follow this way :(