From 89ad8b039cedd210532cae291f65282144ffb1fb Mon Sep 17 00:00:00 2001 From: "Alan M. Carroll" Date: Fri, 22 May 2020 09:38:17 -0500 Subject: [PATCH] regex_remap: Adjust regex recursion limit down due to crashes in testing. --- plugins/regex_remap/regex_remap.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/regex_remap/regex_remap.cc b/plugins/regex_remap/regex_remap.cc index 0426a6cc0fb..27201407ca7 100644 --- a/plugins/regex_remap/regex_remap.cc +++ b/plugins/regex_remap/regex_remap.cc @@ -394,7 +394,8 @@ RemapRegex::compile(const char *&error, int &erroffset) return -1; } - _extra->match_limit_recursion = 2047; + // POOMA - also dependent on actual stack size. Crashes with previous value of 2047, + _extra->match_limit_recursion = 1750; _extra->flags |= PCRE_EXTRA_MATCH_LIMIT_RECURSION; if (pcre_fullinfo(_rex, _extra, PCRE_INFO_CAPTURECOUNT, &ccount) != 0) {