[pcre-dev] Very large value for re_nsub

Page principale
Supprimer ce message
Auteur: Patrick Häcker
Date:  
À: pcre-dev
Sujet: [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