/[Apache-SVN]
ViewVC logotype

Revision 1902732


Jump to revision: Previous Next
Author: ylavic
Date: Fri Jul 15 10:46:37 2022 UTC (22 months, 1 week ago)
Changed paths: 1
Log Message:
util_pcre: Restore nmatch < ncaps behaviour with PCRE1 (only).

When the requested nmatch is below the number of captures for the regex (i.e.
nmatch is zero if the user does not care about the captures), with PCRE1 we can
pass a smaller ovector to pcre_exec() (or even NULL) which allows for somes
optimizations (less or even no recursion) internally in pcre.

This might avoid crashes due to stack usage/exhaustion with pathological
patterns (see BZ 66119).



Changed paths

Path Details
Directoryhttpd/httpd/trunk/server/util_pcre.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26