Autor: Patrick Häcker Fecha: A: pcre-dev Asunto: Re: [pcre-dev] Very large value for re_nsub
At Sonntag, 2. September 2012 Philip Hazel wrote: > On Sat, 1 Sep 2012, Patrick Häcker wrote:
> > when compiling the regular expression
> >
> > regex_t rx;
> > regcomp(&rx, "^(\\(\\))? *(.*)$", 0)
> >
> > I get the large value 140733193388034 for rx.re_nsub (Debian, version
> > 8.30).
>
> I have very recently fixed a bug that may be the cause of your problem.
> The patch is very small, so I'll copy it below. The bug affects systems
> where size_t is not the same as int. Are you using a 64-bit system?
Yes, I have a 64 bit system. I can confirm, that the patch fixes the issue.
Thanks a lot for that patch, your superb reaction and for your work.