Re: [pcre-dev] why no malloc?

Kezdőlap
Üzenet törlése
Szerző: Philip Hazel
Dátum:  
Címzett: David Cheng
CC: pcre-dev
Tárgy: Re: [pcre-dev] why no malloc?
On Wed, 4 Jun 2008, David Cheng wrote:

> Dear Sir:
>
> Upon examining the pcre_dfa_exec.c, I couldn't figure out why the
> stateblock * never used malloc to allocate memory for all the *_states.
> Could you please educate me on how it avoids memory corruption?


It uses the working space passed as the 9th argument.

Philip

--
Philip Hazel