diff options
author | Benoît Ganne <bganne@cisco.com> | 2020-04-17 12:11:26 +0200 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2020-08-13 17:20:47 +0000 |
commit | 2bd7f560c6377b3e48e69cfddd0c5b22abb9acd4 (patch) | |
tree | 3f7785e72dce16d865b94e8248a3b76528eec03d /src/vnet | |
parent | 36f12ac68248229b109c77a69e6b69b3b3efd641 (diff) |
sr: fix non-NULL terminated string overflow
Type: fix
Change-Id: Ia5ae0e893a5358f61353d20f444d88d79953e482
Signed-off-by: Benoît Ganne <bganne@cisco.com>
(cherry picked from commit b9753540d2a69bbab807653fc3d0c1b43ec4d6d5)
Diffstat (limited to 'src/vnet')
-rwxr-xr-x | src/vnet/srv6/sr_policy_rewrite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/srv6/sr_policy_rewrite.c b/src/vnet/srv6/sr_policy_rewrite.c index feac151665a..1d6b7816b52 100755 --- a/src/vnet/srv6/sr_policy_rewrite.c +++ b/src/vnet/srv6/sr_policy_rewrite.c @@ -1012,7 +1012,7 @@ show_sr_policies_command_fn (vlib_main_t * vm, unformat_input_t * input, } s = format (s, "\b\b > "); s = format (s, "weight: %u", segment_list->weight); - vlib_cli_output (vm, " %s", s); + vlib_cli_output (vm, " %v", s); } vlib_cli_output (vm, "-----------"); } |