<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/17105">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">tbf: fix NULL-pointer dereference in gprs_rlcmac_tbf::create_ul_ass()<br><br>The problem is that bitvec_free() is not NULL safe.<br><br>Change-Id: I7647d17b3d03f8e193ef6e793a2d3c1967744eef<br>Fixes: CID#208181<br>---<br>M src/tbf.cpp<br>1 file changed, 2 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/05/17105/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/tbf.cpp b/src/tbf.cpp</span><br><span>index 2f79a98..9b7ade9 100644</span><br><span>--- a/src/tbf.cpp</span><br><span>+++ b/src/tbf.cpp</span><br><span>@@ -1398,7 +1398,8 @@</span><br><span>      return msg;</span><br><span> </span><br><span> free_ret:</span><br><span style="color: hsl(0, 100%, 40%);">-    bitvec_free(ass_vec);</span><br><span style="color: hsl(120, 100%, 40%);">+ if (ass_vec != NULL)</span><br><span style="color: hsl(120, 100%, 40%);">+          bitvec_free(ass_vec);</span><br><span>        talloc_free(mac_control_block);</span><br><span>      msgb_free(msg);</span><br><span>      return NULL;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcu/+/17105">change 17105</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/+/17105"/><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: I7647d17b3d03f8e193ef6e793a2d3c1967744eef </div>
<div style="display:none"> Gerrit-Change-Number: 17105 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>