<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/24724">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">abis_rsl: fix rsl_rx_ccch_load(): properly check the message length<br><br>msg->data_len is the total number of bytes available in the buffer,<br>not the actual length of the payload.  Use msgb_length().<br><br>Change-Id: I35bf0827ff14e84a755c1aa24a6efc06bc7b9f9b<br>---<br>M src/osmo-bsc/abis_rsl.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/osmo-bsc refs/changes/24/24724/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bsc/abis_rsl.c b/src/osmo-bsc/abis_rsl.c</span><br><span>index ac8006d..f24d1ef 100644</span><br><span>--- a/src/osmo-bsc/abis_rsl.c</span><br><span>+++ b/src/osmo-bsc/abis_rsl.c</span><br><span>@@ -1946,7 +1946,7 @@</span><br><span>          osmo_signal_dispatch(SS_CCCH, S_CCCH_PAGING_LOAD, &sd);</span><br><span>          break;</span><br><span>       case RSL_IE_RACH_LOAD:</span><br><span style="color: hsl(0, 100%, 40%);">-          if (msg->data_len >= 7) {</span><br><span style="color: hsl(120, 100%, 40%);">+               if (msgb_length(msg) >= 7) {</span><br><span>                      int32_t busy_percent, access_percent;</span><br><span>                        /* build data for signal */</span><br><span>                  sd.rach_slot_count = rslh->data[2] << 8 | rslh->data[3];</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/24724">change 24724</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-bsc/+/24724"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I35bf0827ff14e84a755c1aa24a6efc06bc7b9f9b </div>
<div style="display:none"> Gerrit-Change-Number: 24724 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>