Commit 4a19ed43 authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'support_larger_regex'

8bc06cf8

 Regex: Double the maximal allowed size for a regex (to 2^{16}-1)
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !198
parents 185dd56e 8bc06cf8
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment