From c3af05c4fb813bccee2ac260782d3baa86ba9e6c Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Wed, 7 Sep 2022 20:47:01 -0400 Subject: [PATCH] extend the length to which the regex matcher checks strings to 256 chars. --- src/utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.cpp b/src/utils.cpp index eb9e48985a..aaca268174 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -1516,8 +1516,8 @@ static int re_matchp(const char *text, re_t pattern, int *matchlen); /* Definitions: */ -#define MAX_REGEXP_OBJECTS 30 /* Max number of regex symbols in expression. */ -#define MAX_CHAR_CLASS_LEN 40 /* Max length of character-class buffer in. */ +#define MAX_REGEXP_OBJECTS 256 /* Max number of regex symbols in expression. */ +#define MAX_CHAR_CLASS_LEN 256 /* Max length of character-class buffer in. */ enum { RX_UNUSED,