Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
vlib: fix vector-as-C-string overflow
[vpp.git]
/
src
/
vlib
/
cli.c
diff --git
a/src/vlib/cli.c
b/src/vlib/cli.c
index
6088fc2
..
467d1f7
100644
(file)
--- a/
src/vlib/cli.c
+++ b/
src/vlib/cli.c
@@
-558,7
+558,7
@@
vlib_cli_dispatch_sub_commands (vlib_main_t * vm,
u32 c;
} *ed;
ed = ELOG_DATA (&vm->elog_main, e);
u32 c;
} *ed;
ed = ELOG_DATA (&vm->elog_main, e);
- ed->c = elog_string (&vm->elog_main, c->path);
+ ed->c = elog_string (&vm->elog_main,
"%v",
c->path);
}
if (!c->is_mp_safe)
}
if (!c->is_mp_safe)
@@
-584,7
+584,7
@@
vlib_cli_dispatch_sub_commands (vlib_main_t * vm,
u32 c, err;
} *ed;
ed = ELOG_DATA (&vm->elog_main, e);
u32 c, err;
} *ed;
ed = ELOG_DATA (&vm->elog_main, e);
- ed->c = elog_string (&vm->elog_main, c->path);
+ ed->c = elog_string (&vm->elog_main,
"%v",
c->path);
if (c_error)
{
vec_add1 (c_error->what, 0);
if (c_error)
{
vec_add1 (c_error->what, 0);