Unverified Commit 91e731c9 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune Committed by Nils Goroll

vre: Acknowledge that limits aren't reentrant

We might want to do something about it once pcre2 is in place, but it
should be noted that concurrent matches on a vre_t could compete over
the limits we can tweak.

Refs #3559
parent d36fcf29
......@@ -119,6 +119,7 @@ VRE_exec(const vre_t *code, const char *subject, int length,
}
if (lim != NULL) {
/* XXX: not reentrant */
code->re_extra->match_limit = lim->match;
code->re_extra->flags |= PCRE_EXTRA_MATCH_LIMIT;
code->re_extra->match_limit_recursion = lim->match_recursion;
......
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