From 56abc440224b201cdc9d3630d07cfcbae1713817 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlo=20Marcelo=20Arenas=20Bel=C3=B3n?= Date: Thu, 29 Dec 2022 01:46:04 -0800 Subject: [PATCH] correctly set heap_limit in KiB After d90fb23 (Refactor match_data() to always use the heap instead of having an initial frames vector on the stack..., 2022-07-27) there was no longer a need to multiply the heap limit by 1024, but there was a missed spot. --- src/pcre2_match.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pcre2_match.c b/src/pcre2_match.c index 168b9fad0..2b6714735 100644 --- a/src/pcre2_match.c +++ b/src/pcre2_match.c @@ -6816,7 +6816,7 @@ frame_size = (offsetof(heapframe, ovector) + smaller. */ mb->heap_limit = ((mcontext->heap_limit < re->limit_heap)? - mcontext->heap_limit : re->limit_heap) * 1024; + mcontext->heap_limit : re->limit_heap); mb->match_limit = (mcontext->match_limit < re->limit_match)? mcontext->match_limit : re->limit_match;