<p>laforge <strong>uploaded patch set #4</strong> to the change originally created by dexter.</p><p><a href="https://gerrit.osmocom.org/c/pysim/+/18208">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">utils: do not crash when all bytes of EF.IMSI are 0xFF<br><br>In case try to decode the contents of an uninitalized EF.IMSI, the<br>function dec_imsi() would crash because it truncates all 0xFF from the<br>swapped version of the EF.IMSI contents and then accesses the first<br>element of the buffer. This always works for EF.IMSI contents that<br>contain valid IMSI data, but if all bytes are set to 0xFF, then no data<br>is left in the buffer after truncating, so lets check if we even have<br>bytes left before we move on with the decoding.<br><br>Change-Id: I93874a1d7e0b87d39e4b06a5c504643cfabb451c<br>---<br>M pySim/utils.py<br>1 file changed, 2 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/08/18208/4</pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/pysim/+/18208">change 18208</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/pysim/+/18208"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: pysim </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I93874a1d7e0b87d39e4b06a5c504643cfabb451c </div>
<div style="display:none"> Gerrit-Change-Number: 18208 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>