Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
d1e17d0
)
MAP: Crush Coverity Complaint
62/18462/2
author
Jon Loeliger
<jdl@netgate.com>
Thu, 21 Mar 2019 15:57:51 +0000
(10:57 -0500)
committer
Ole Trøan
<otroan@employees.org>
Fri, 22 Mar 2019 08:28:02 +0000
(08:28 +0000)
Change-Id: I965229f5bf8fcde9176357536a23ba8056542919
Signed-off-by: Jon Loeliger <jdl@netgate.com>
src/plugins/map/map_api.c
patch
|
blob
|
history
diff --git
a/src/plugins/map/map_api.c
b/src/plugins/map/map_api.c
index
92abecd
..
b9b4416
100644
(file)
--- 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 =