Change in osmo-ggsn[master]: sgsnemu: relax check on length of IMSI cmdline arg.

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/.

keith gerrit-no-reply at lists.osmocom.org
Mon Oct 12 11:17:52 UTC 2020


keith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ggsn/+/20571 )


Change subject: sgsnemu: relax check on length of IMSI cmdline arg.
......................................................................

sgsnemu: relax check on length of IMSI cmdline arg.

Change-Id: I0374ff8773ae528c916fbee5f3f1efd89a5d2a08
---
M sgsnemu/sgsnemu.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ggsn refs/changes/71/20571/1

diff --git a/sgsnemu/sgsnemu.c b/sgsnemu/sgsnemu.c
index c310164..002c2e4 100644
--- a/sgsnemu/sgsnemu.c
+++ b/sgsnemu/sgsnemu.c
@@ -492,7 +492,7 @@
 	}
 
 	/* imsi                                                            */
-	if (strlen(args_info.imsi_arg) != 15) {
+	if (strlen(args_info.imsi_arg) < 6 || strlen(args_info.imsi_arg) > 15) {
 		printf("Invalid IMSI\n");
 		return -1;
 	}

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ggsn/+/20571
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ggsn
Gerrit-Branch: master
Gerrit-Change-Id: I0374ff8773ae528c916fbee5f3f1efd89a5d2a08
Gerrit-Change-Number: 20571
Gerrit-PatchSet: 1
Gerrit-Owner: keith <keith at rhizomatica.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201012/0b660384/attachment.htm>


More information about the gerrit-log mailing list