From 87a9887e6ee032fec1261b88d2ac9b701f3f6802 Mon Sep 17 00:00:00 2001 From: "Philip.Hazel" Date: Mon, 22 Oct 2018 16:56:11 +0000 Subject: [PATCH] Add "kibibytes" to the output of pcre2test -C to show the units of the heap limit. --- ChangeLog | 3 +++ src/pcre2test.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a3d7e59..e5d8d35 100644 --- a/ChangeLog +++ b/ChangeLog @@ -52,6 +52,9 @@ be the first character of a match. overflow if the heap limit was set very large. This could cause incorrect "heap limit exceeded" errors. +13. Add "kibibytes" to the heap limit output from pcre2test -C to make the +units clear. + Version 10.32 10-September-2018 ------------------------------- diff --git a/src/pcre2test.c b/src/pcre2test.c index 6af25cb..1944e32 100644 --- a/src/pcre2test.c +++ b/src/pcre2test.c @@ -8152,7 +8152,7 @@ printf(" Internal link size = %d\n", optval); (void)PCRE2_CONFIG(PCRE2_CONFIG_PARENSLIMIT, &optval); printf(" Parentheses nest limit = %d\n", optval); (void)PCRE2_CONFIG(PCRE2_CONFIG_HEAPLIMIT, &optval); -printf(" Default heap limit = %d\n", optval); +printf(" Default heap limit = %d kibibytes\n", optval); (void)PCRE2_CONFIG(PCRE2_CONFIG_MATCHLIMIT, &optval); printf(" Default match limit = %d\n", optval); (void)PCRE2_CONFIG(PCRE2_CONFIG_DEPTHLIMIT, &optval);