The PCRE2 Library 10.37 has been released, providing a set of functions in the C language with a regular expression implementation and pattern matching tools, similar in syntax and semantics to the regular expressions of Perl 5. PCRE2 represents a reworked implementation of the original PCRE library with an incompatible API and extended capabilities. The library is based on the work of the Exim mail server developers and is distributed under the BSD license.
Key Changes:
- The POSIX function symbols, such as regcomp, have been removed from the libpcre2-posix library, as they caused issues for some applications. The patch pcre2-symbol-clash.patch has been accepted upstream. The ABI version of this library has also been updated.
- A problem that could hypothetically lead to a null pointer dereference has been fixed.
- Two bugs in handling very large numbers have been corrected, which caused behavior inconsistent with the Perl regular expression engine. For example, the expression '\/\214748364/' caused an overflow instead of being processed as the octal number '\214' with the trailing characters '748364'.
- Incorrect behavior when using the '\K' operation in patterns has been fixed.
- The optimization of character repetition operations has been restored in JIT.
Source: opennet.ru
