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)
This commit is contained in:
KWSys Upstream
2020-09-29 05:21:34 -04:00
committed by Brad King
parent 82fd685043
commit eaf37ffde9

View File

@@ -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;