The largest possible string in this code 0xFFFFFFFFFFFFFFFF which will overflow with only 15 character buffer. Increase to 20.
Signed-off-by: Stephen Hemminger <[email protected]> --- lib/eal/common/eal_common_memory.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/eal/common/eal_common_memory.c b/lib/eal/common/eal_common_memory.c index c62edf5e55..dccf9406c5 100644 --- a/lib/eal/common/eal_common_memory.c +++ b/lib/eal/common/eal_common_memory.c @@ -1153,8 +1153,9 @@ rte_eal_memory_init(void) #define EAL_MEMSEG_INFO_REQ "/eal/memseg_info" #define EAL_ELEMENT_LIST_REQ "/eal/mem_element_list" #define EAL_ELEMENT_INFO_REQ "/eal/mem_element_info" -#define ADDR_STR 15 +/* Address string is "0x" prefix + 16 hex digits + null */ +#define ADDR_STR 20 /* Telemetry callback handler to return heap stats for requested heap id. */ static int -- 2.51.0

