From eaf37ffde95e961aba6468fad81f00ef0ed388ae Mon Sep 17 00:00:00 2001 From: KWSys Upstream Date: Tue, 29 Sep 2020 05:21:34 -0400 Subject: KWSys 2020-09-29 (4a19ed43) Code extracted from: https://gitlab.kitware.com/utils/kwsys.git at commit 4a19ed432e73d9720244eb52799c4c0a54172eca (master). Upstream Shortlog ----------------- Deniz Bahadir (1): 8bc06cf8 Regex: Double the maximal allowed size for a regex (to 2^{16}-1) --- RegularExpression.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RegularExpression.cxx b/RegularExpression.cxx index 4f74eba..fb4e380 100644 --- a/RegularExpression.cxx +++ b/RegularExpression.cxx @@ -359,7 +359,7 @@ bool RegularExpression::compile(const char* exp) this->regmatch.clear(); // Small enough for pointer-storage convention? - if (comp.regsize >= 32767L) { // Probably could be 65535L. + if (comp.regsize >= 65535L) { // RAISE Error, SYM(RegularExpression), SYM(Expr_Too_Big), printf("RegularExpression::compile(): Expression too big.\n"); return false; -- cgit v0.12