Skip to content
Snippets Groups Projects
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: default avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !198
parents 185dd56e 8bc06cf8
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment