<p>fixeria <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/17209">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">tests/rlcmac: fix malformed MS RA capability in testRAcap()<br><br>Long story short: as it turns out the test vector '12a5146200'O<br>has been generated by TITAN, and it's malformed. The length<br>indicator it contains must be at least 29 bits, not 21. This<br>field is calculated by TITAN automatically, so I guess there<br>is a bug somewhere in its RAW encoder implementation.<br><br>It's funny that Wireshark decodes the old malformed vector without<br>any problems if it's encapsulated into the BSSGP DL-UNITDATA. The<br>reason for that is because BSSGP dissector does not actually use<br>the CSN.1 codec and relies on its own hand-written parser [1],<br>which does not respect the length constraints.<br><br>Furthermore, table 10.5.146/3GPP TS 24.008, describing the format<br>of MS Radio Access Capability IE, has the following comment:<br><br>  < Multislot capability struct > ::=<br>    { 0 | 1 < HSCSD multislot class : bit (5) > }<br>    ...<br>  -- error: struct too short, assume features do not exist<br><br>so ideally our CSN.1 decoder should be more tolerant to the old<br>malformed vector, but unfortunately error handling is not implemented.<br><br>[1] See de_gmm_ms_radio_acc_cap() in epan/dissectors/packet-gsm_a_gm.c.<br><br>Change-Id: I5f810397b8d09c18e069168023429f6a4d899c86<br>---<br>M tests/rlcmac/RLCMACTest.cpp<br>M tests/rlcmac/RLCMACTest.err<br>M tests/rlcmac/RLCMACTest.ok<br>3 files changed, 22 insertions(+), 13 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/09/17209/2</pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcu/+/17209">change 17209</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/+/17209"/><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: I5f810397b8d09c18e069168023429f6a4d899c86 </div>
<div style="display:none"> Gerrit-Change-Number: 17209 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </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: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>