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 13:37:36 UTC 2020


keith has submitted this change. ( 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(-)

Approvals:
  Jenkins Builder: Verified
  keith: Looks good to me, but someone else must approve
  pespin: Looks good to me, approved



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-Reviewer: Jenkins Builder
Gerrit-Reviewer: keith <keith at rhizomatica.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201012/c5d4e241/attachment.htm>


More information about the gerrit-log mailing list