Skip to content

Commit

Permalink
msgpack: increase the string and map size limits
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Aditya Prajapati committed May 16, 2023
1 parent c22d413 commit b0ac0de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions include/ctraces/ctr_mpack_utils_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b0ac0de

Please sign in to comment.