<p>osmith <strong>uploaded patch set #4</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/14397">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gsm48_decode_bcd_number2: fix ENOSPC edge case<br><br>Return ENOSPC if the decoding buffer is one byte too small, instead of<br>returning 0 and silently truncating the string. Add a new "truncated"<br>variable to detect if the loop breaks in the final iteration.<br><br>The string is not truncated if there is exactly one 0xf ('\0') higher<br>nibble remaining. This is covered by the existing test case "long<br>15-digit (maximum) MSISDN, limited buffer".<br><br>Related: OS#4049<br>Change-Id: Ie05900aca50cc7fe8a45d17844dbfcd905fd82fe<br>---<br>M src/gsm/gsm48_ie.c<br>M tests/gsm0408/gsm0408_test.c<br>M tests/gsm0408/gsm0408_test.ok<br>3 files changed, 28 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/97/14397/4</pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/14397">change 14397</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/libosmocore/+/14397"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ie05900aca50cc7fe8a45d17844dbfcd905fd82fe </div>
<div style="display:none"> Gerrit-Change-Number: 14397 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: daniel <dwillmann@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>