<p>dexter has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/22339">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gprs_bssgp_rim: fix bug in dub_tlvp_header()<br><br>When the length field is written the function writes the lower and the<br>higher half of the length at the same position, so the higher half is<br>overwritten with the lower half, this is wrong.<br><br>Change-Id: I3cce0b2796793554a421fd3ce8e749c52d22eaea<br>Related: CID#216670<br>Related: SYS#5103<br>---<br>M src/gb/gprs_bssgp_rim.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/39/22339/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/gb/gprs_bssgp_rim.c b/src/gb/gprs_bssgp_rim.c</span><br><span>index 2096977..23fb3a0 100644</span><br><span>--- a/src/gb/gprs_bssgp_rim.c</span><br><span>+++ b/src/gb/gprs_bssgp_rim.c</span><br><span>@@ -438,7 +438,7 @@</span><br><span>         } else {</span><br><span>             memmove(buf_ptr + 1, buf_ptr, len);</span><br><span>          buf_ptr[1] = len >> 8;</span><br><span style="color: hsl(0, 100%, 40%);">-            buf_ptr[1] = len & 0xff;</span><br><span style="color: hsl(120, 100%, 40%);">+          buf_ptr[2] = len & 0xff;</span><br><span>                 buf_ptr += TVLV_HDR_MAXLEN;</span><br><span>  }</span><br><span>    buf_ptr += len;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/22339">change 22339</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/+/22339"/><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: I3cce0b2796793554a421fd3ce8e749c52d22eaea </div>
<div style="display:none"> Gerrit-Change-Number: 22339 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>