<p>Vadim Yanitskiy has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/13885">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">handover_fsm.c: fix: prevent possible buffer overflow<br><br>Change-Id: If51f8f82d3b2462cb7d7a531fe4411509344842b<br>Fixes: CID#197643<br>---<br>M src/osmo-bsc/handover_fsm.c<br>1 file changed, 1 insertion(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/85/13885/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bsc/handover_fsm.c b/src/osmo-bsc/handover_fsm.c</span><br><span>index c044407..62927f9 100644</span><br><span>--- a/src/osmo-bsc/handover_fsm.c</span><br><span>+++ b/src/osmo-bsc/handover_fsm.c</span><br><span>@@ -637,6 +637,7 @@</span><br><span>            if (req->ei.key_len > sizeof(info.encr.key)) {</span><br><span>                         ho_fail(HO_RESULT_ERROR, "Encryption Information IE key length is too large: %u\n",</span><br><span>                                req->ei.key_len);</span><br><span style="color: hsl(120, 100%, 40%);">+                  return;</span><br><span>              }</span><br><span>            memcpy(info.encr.key, req->ei.key, req->ei.key_len);</span><br><span>           info.encr.key_len = req->ei.key_len;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/13885">change 13885</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/13885"/><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-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: If51f8f82d3b2462cb7d7a531fe4411509344842b </div>
<div style="display:none"> Gerrit-Change-Number: 13885 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Vadim Yanitskiy <axilirator@gmail.com> </div>