<p>fixeria <strong>uploaded patch set #4</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/17394">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">csn1: fix: do not return 0 if no bits left in the buffer<br><br>Both csnStreamDecoder() and csnStreamEncoder() shall not return 0<br>prematurely if no more bits left in the input / output bit-vector.<br><br>Returning CSN_ERROR_NEED_MORE_BITS_TO_UNPACK might make more sense,<br>however we don't know in advance (i.e. without entering the loop)<br>whether it's an error or not. Some CSN.1 definitions have names<br>like 'M_*_OR_NULL', what basically means that they're optional<br>and can be ignored or omitted.<br><br>Most of the case statements do check whether the number of remaining<br>bits is enough to unpack / pack a value, so let's leave it up to<br>the the current CSN_* handler (pointed by pDescr).<br><br>Change-Id: Ie3a15e210624599e39b1e70c8d34efc10c552f6c<br>---<br>M src/csn1.c<br>M tests/rlcmac/RLCMACTest.err<br>M tests/rlcmac/RLCMACTest.ok<br>3 files changed, 3 insertions(+), 12 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/94/17394/4</pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcu/+/17394">change 17394</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/osmo-pcu/+/17394"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-pcu </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ie3a15e210624599e39b1e70c8d34efc10c552f6c </div>
<div style="display:none"> Gerrit-Change-Number: 17394 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>