api: fix buffer overflow in vl_msg_replay_json 33/34033/3
authorBenoît Ganne <bganne@cisco.com>
Mon, 11 Oct 2021 11:49:59 +0000 (13:49 +0200)
committerOle Tr�an <otroan@employees.org>
Wed, 27 Oct 2021 08:21:25 +0000 (08:21 +0000)
commit2b9a4bf3b307870324715bab698204f286368cc0
tree8c1c3e90a85f3ef4916855809e1da1883603f446
parent93bca19f1e1026a5b49fbd42ec07721a9b83175c
api: fix buffer overflow in vl_msg_replay_json

cJSON_Parse() and vlib_cli_output() expect a NULL-terminated C-string.

Type: fix
Fixes: 36217e3ca8a1ca2e7a341b6b44ffc25e6497191c

Change-Id: Id9819314fcd332c6076d1330b3433885fff07e36
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/vlibmemory/vlib_api_cli.c