[pcre-dev] Very large value for re_nsub

Inizio della pagina
Delete this message
Autore: Patrick Häcker
Data:  
To: pcre-dev
Oggetto: [pcre-dev] Very large value for re_nsub
Dear developers,

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).
In the program at hand
(http://www.stefant.org/web/projects/software/pplatex.html, regex.cpp, line
26), this value is used afterwards in malloc, which fails.

Is such a high value normal? Is there some usage error?

Cheers
Patrick

P.S. Please CC, I am not subscribed