From: Jon Loeliger Date: Thu, 21 Mar 2019 15:57:51 +0000 (-0500) Subject: MAP: Crush Coverity Complaint X-Git-Tag: v19.04-rc1~161 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=bdd6e6ac4ebde344adeb3f7c78c4b2031a0eb52a;hp=d1e17d00bb81659bf9e45caa62482bf7029d98f7;p=vpp.git MAP: Crush Coverity Complaint Change-Id: I965229f5bf8fcde9176357536a23ba8056542919 Signed-off-by: Jon Loeliger --- diff --git a/src/plugins/map/map_api.c b/src/plugins/map/map_api.c index 92abecd3430..b9b4416d57a 100644 --- a/src/plugins/map/map_api.c +++ b/src/plugins/map/map_api.c @@ -60,8 +60,8 @@ vl_api_map_add_domain_t_handler (vl_api_map_add_domain_t * mp) if (len > 0) { tag = clib_mem_alloc (len + 1); + clib_memset (tag, 0, len + 1); clib_memcpy (tag, (char *) mp->tag.buf, len); - tag[len] = 0; } rv =