[PATCH] 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/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Fri Nov 17 13:37:21 UTC 2017


Review at  https://gerrit.osmocom.org/4897

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(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/97/4897/1

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: newchange
Gerrit-Change-Id: I180d2ecbb266d9baf2a96017bab20760bb42812e
Gerrit-PatchSet: 1
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>



More information about the gerrit-log mailing list