Change in pysim[master]: utils.py: Handle parsing of ePDGId TLV with zero length

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

laforge gerrit-no-reply at lists.osmocom.org
Thu Jun 25 20:10:29 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/pysim/+/18975 )

Change subject: utils.py: Handle parsing of ePDGId TLV with zero length
......................................................................

utils.py: Handle parsing of ePDGId TLV with zero length

Change-Id: Ie05ae010948884765363bd9dbc2b0d764ff8d42a
---
M pySim/utils.py
1 file changed, 4 insertions(+), 0 deletions(-)

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



diff --git a/pySim/utils.py b/pySim/utils.py
index 2ca6165..79a1c1b 100644
--- a/pySim/utils.py
+++ b/pySim/utils.py
@@ -462,6 +462,10 @@
 		if tlv[0] != 0x80:
 			continue
 
+		# Empty field - Zero length
+		if tlv[1] == 0:
+			continue
+
 		# First byte in the value has the address type
 		addr_type = tlv[2][0]
 		# TODO: Support parsing of IPv4 and IPv6

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

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Ie05ae010948884765363bd9dbc2b0d764ff8d42a
Gerrit-Change-Number: 18975
Gerrit-PatchSet: 1
Gerrit-Owner: herlesupreeth <herlesupreeth at gmail.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200625/abf641bc/attachment.htm>


More information about the gerrit-log mailing list