Re: [pcre-dev] Calculated match recursion stack size

Página superior
Eliminar este mensaje
Autor: Philip Hazel
Fecha:  
A: Graycode
Cc: pcre-dev
Asunto: Re: [pcre-dev] Calculated match recursion stack size
On Wed, 18 Jan 2012, Graycode wrote:

> You're right. I hadn't thought anyone would use pcre_config() without
> having pcre_exec().


Somebody might use pcre_config() and pcre_dfa_exec().

> > 6. I am not sure why your code allows for two additional ints. Where do
> > they come from?
>
> The answer is in your question #5. There was another place where I saw
> two ints on the stack above RMATCH() where #5 shows just one int.


I looked and didn't spot that. Maybe the code has changed. Hmm. That is
not good because it's something unpredictable.

> In the patch I was using the address of a static variable as being the
> equivalent of an option bit.


I am doing experiments and I think I now know how to get at least the
basic size. I will post again when I'm done.

Philip

--
Philip Hazel