Skip to content

Commit b0ac0de

Browse files
author
Aditya Prajapati
authored
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 <aditya@calyptia.com>
1 parent c22d413 commit b0ac0de

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ endif()
2727
# CTraces Version
2828
set(CTR_VERSION_MAJOR 0)
2929
set(CTR_VERSION_MINOR 3)
30-
set(CTR_VERSION_PATCH 0)
30+
set(CTR_VERSION_PATCH 1)
3131
set(CTR_VERSION_STR "${CTR_VERSION_MAJOR}.${CTR_VERSION_MINOR}.${CTR_VERSION_PATCH}")
3232

3333
# Define __FILENAME__ consistently across Operating Systems

include/ctraces/ctr_mpack_utils_defs.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#define CTR_MPACK_ERROR_CUTOFF 20
3535

3636
#define CTR_MPACK_MAX_ARRAY_ENTRY_COUNT 65535
37-
#define CTR_MPACK_MAX_MAP_ENTRY_COUNT 20
38-
#define CTR_MPACK_MAX_STRING_LENGTH 1024
37+
#define CTR_MPACK_MAX_MAP_ENTRY_COUNT 512
38+
#define CTR_MPACK_MAX_STRING_LENGTH (1024 * 1000)
3939

4040
#endif

0 commit comments

Comments
 (0)