From b0ac0de67f80f9f3a1e3f3c80e7ba03e4b1864e9 Mon Sep 17 00:00:00 2001 From: Aditya Prajapati Date: Tue, 16 May 2023 17:44:41 +0530 Subject: [PATCH] msgpack: increase the string and map size limits This PR increases the maximum string length and map size to accomodate use cases where certain data is erroneously packed into certain fields. Signed-off-by: Aditya Prajapati --- CMakeLists.txt | 2 +- include/ctraces/ctr_mpack_utils_defs.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3628021..08e1b6d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,7 +27,7 @@ endif() # CTraces Version set(CTR_VERSION_MAJOR 0) set(CTR_VERSION_MINOR 3) -set(CTR_VERSION_PATCH 0) +set(CTR_VERSION_PATCH 1) set(CTR_VERSION_STR "${CTR_VERSION_MAJOR}.${CTR_VERSION_MINOR}.${CTR_VERSION_PATCH}") # Define __FILENAME__ consistently across Operating Systems diff --git a/include/ctraces/ctr_mpack_utils_defs.h b/include/ctraces/ctr_mpack_utils_defs.h index 123fa4f..239f0d8 100644 --- a/include/ctraces/ctr_mpack_utils_defs.h +++ b/include/ctraces/ctr_mpack_utils_defs.h @@ -34,7 +34,7 @@ #define CTR_MPACK_ERROR_CUTOFF 20 #define CTR_MPACK_MAX_ARRAY_ENTRY_COUNT 65535 -#define CTR_MPACK_MAX_MAP_ENTRY_COUNT 20 -#define CTR_MPACK_MAX_STRING_LENGTH 1024 +#define CTR_MPACK_MAX_MAP_ENTRY_COUNT 512 +#define CTR_MPACK_MAX_STRING_LENGTH (1024 * 1000) #endif \ No newline at end of file