[MERGED] libosmo-sccp[master]: ss7_vty: Fix out-of-bounds access in 'as' cmd

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Sat Nov 18 10:16:32 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: ss7_vty: Fix out-of-bounds access in 'as' cmd
......................................................................


ss7_vty: Fix out-of-bounds access in 'as' cmd

Change-Id: I180d2ecbb266d9baf2a96017bab20760bb42812e
---
M src/osmo_ss7_vty.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/osmo_ss7_vty.c b/src/osmo_ss7_vty.c
index 4c67508..cbbb9e3 100644
--- a/src/osmo_ss7_vty.c
+++ b/src/osmo_ss7_vty.c
@@ -677,7 +677,7 @@
 	enum osmo_ss7_asp_protocol protocol = parse_asp_proto(argv[1]);
 
 	if (protocol == OSMO_SS7_ASP_PROT_NONE) {
-		vty_out(vty, "invalid protocol '%s'%s", argv[3], VTY_NEWLINE);
+		vty_out(vty, "invalid protocol '%s'%s", argv[1], VTY_NEWLINE);
 		return CMD_WARNING;
 	}
 

-- 
To view, visit https://gerrit.osmocom.org/4897
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I180d2ecbb266d9baf2a96017bab20760bb42812e
Gerrit-PatchSet: 1
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list