Commit 82081bab authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

vre: Check return value when setting limits

Spotted by flexelint.
parent 38506b33
...@@ -156,8 +156,8 @@ vre_limit(const vre_t *code, const volatile struct vre_limits *lim) ...@@ -156,8 +156,8 @@ vre_limit(const vre_t *code, const volatile struct vre_limits *lim)
/* XXX: not reentrant */ /* XXX: not reentrant */
AN(code->re_ctx); AN(code->re_ctx);
pcre2_set_match_limit(code->re_ctx, lim->match); AZ(pcre2_set_match_limit(code->re_ctx, lim->match));
pcre2_set_depth_limit(code->re_ctx, lim->depth); AZ(pcre2_set_depth_limit(code->re_ctx, lim->depth));
} }
vre_t * vre_t *
......
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