Skip to content

Commit

Permalink
lib: fix uint32_t overflow in a couple of CLI commands
Browse files Browse the repository at this point in the history
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
  • Loading branch information
rwestphal committed Aug 21, 2019
1 parent 6a2b0d9 commit 20054cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/ferr.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ void log_ref_display(struct vty *vty, uint32_t code, bool json)

DEFUN_NOSH(show_error_code,
show_error_code_cmd,
"show error <(1-4294967296)|all> [json]",
"show error <(1-4294967295)|all> [json]",
SHOW_STR
"Information on errors\n"
"Error code to get info about\n"
Expand Down
14 changes: 7 additions & 7 deletions lib/northbound_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ DEFPY (config_load,
"configuration load\
<\
file [<json$json|xml$xml> [translate WORD$translator_family]] FILENAME$filename\
|transaction (1-4294967296)$tid\
|transaction (1-4294967295)$tid\
>\
[replace$replace]",
"Configuration related settings\n"
Expand Down Expand Up @@ -923,12 +923,12 @@ DEFPY (show_config_compare,
<\
candidate$c1_candidate\
|running$c1_running\
|transaction (1-4294967296)$c1_tid\
|transaction (1-4294967295)$c1_tid\
>\
<\
candidate$c2_candidate\
|running$c2_running\
|transaction (1-4294967296)$c2_tid\
|transaction (1-4294967295)$c2_tid\
>\
[<json$json|xml$xml> [translate WORD$translator_family]]",
SHOW_STR
Expand Down Expand Up @@ -1029,11 +1029,11 @@ ALIAS (show_config_compare,
"show configuration compare\
<\
running$c1_running\
|transaction (1-4294967296)$c1_tid\
|transaction (1-4294967295)$c1_tid\
>\
<\
running$c2_running\
|transaction (1-4294967296)$c2_tid\
|transaction (1-4294967295)$c2_tid\
>\
[<json$json|xml$xml> [translate WORD$translator_family]]",
SHOW_STR
Expand Down Expand Up @@ -1192,7 +1192,7 @@ DEFPY (show_config_transaction,
show_config_transaction_cmd,
"show configuration transaction\
[\
(1-4294967296)$transaction_id\
(1-4294967295)$transaction_id\
[<json$json|xml$xml> [translate WORD$translator_family]]\
[<\
with-defaults$with_defaults\
Expand Down Expand Up @@ -1593,7 +1593,7 @@ static int nb_cli_rollback_configuration(struct vty *vty,

DEFPY (rollback_config,
rollback_config_cmd,
"rollback configuration (1-4294967296)$transaction_id",
"rollback configuration (1-4294967295)$transaction_id",
"Rollback to a previous state\n"
"Running configuration\n"
"Transaction ID\n")
Expand Down

0 comments on commit 20054cb

Please sign in to comment.