From 460d75efc81b1df336f680c96868180195de29fc Mon Sep 17 00:00:00 2001 From: Mark Knapp Date: Thu, 21 May 2020 17:18:22 -0400 Subject: [PATCH] Fix cache size calculation integer overflow Signed-off-by: Mark Knapp --- lib/Query_Cache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Query_Cache.cpp b/lib/Query_Cache.cpp index 451c6253c..627714b03 100644 --- a/lib/Query_Cache.cpp +++ b/lib/Query_Cache.cpp @@ -375,7 +375,7 @@ qc_metrics_map = std::make_tuple( ); uint64_t Query_Cache::get_data_size_total() { - int r=0; + uint64_t r=0; int i; for (i=0; iget_data_size();