Skip to content

Commit efa0856

Browse files
SolidWallOfCodeDamian Meden
authored andcommitted
regex_remap: Adjust regex recursion limit down due to crashes in testing. (apache#6819)
1 parent 52cd8fb commit efa0856

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/regex_remap/regex_remap.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,8 @@ RemapRegex::compile(const char *&error, int &erroffset)
394394
return -1;
395395
}
396396

397-
_extra->match_limit_recursion = 2047;
397+
// POOMA - also dependent on actual stack size. Crashes with previous value of 2047,
398+
_extra->match_limit_recursion = 1750;
398399
_extra->flags |= PCRE_EXTRA_MATCH_LIMIT_RECURSION;
399400

400401
if (pcre_fullinfo(_rex, _extra, PCRE_INFO_CAPTURECOUNT, &ccount) != 0) {

0 commit comments

Comments
 (0)