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

herlesupreeth gerrit-no-reply at lists.osmocom.org
Tue Jun 23 11:23:04 UTC 2020


herlesupreeth has uploaded this change for review. ( 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(-)



  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/75/18975/1

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-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200623/87114444/attachment.htm>


More information about the gerrit-log mailing list