ntop/nDPI

Drop PCRE in favor of PCRE2

Ansuel opened this issue · 1 comments

Ansuel commented

Is your feature request related to a problem? Please describe.
PCRE is EOL and won't receive any security updates anymore. PCRE2 is the current regex library supported and code should be switched to it.

Describe the solution you'd like
PCRE2 have different API than PCRE and require some rework of the function.

Describe alternatives you've considered
Conversion is a must. Keeping support for PCRE deviates the use of PCRE in this library (aka checking for rce injection) hence moving to PCRE2 is the only solution.

Additional context
Some extra precaution are needed in memory handling as PCRE2 changed the way result vector are returned.

Done