<p>Stefan Sperling <strong>uploaded patch set #3</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/10054">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">fix unaligned access in build_ipcp_pco()<br><br>IPCP data can begin at any byte location in the pco_req->v array.<br>Casting to a 'struct ipcp_hdr' pointer could lead to unaligned access.<br>Parse IPCP data with u_int8_t pointers instead to avoid this problem.<br><br>Add some length checks while here.<br>pco_contains_proto() and ipcp_contains_option() now receive the minimum<br>size of the data the caller is looking for, and only return pointers<br>to items of sufficient size.<br><br>Change-Id: Ia1410abb216831864042f95679330f4508e1af3d<br>Related: OS#3194<br>---<br>M ggsn/ggsn.c<br>1 file changed, 29 insertions(+), 20 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-ggsn refs/changes/54/10054/3</pre><p>To view, visit <a href="https://gerrit.osmocom.org/10054">change 10054</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/10054"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ggsn </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>
<div style="display:none"> Gerrit-Change-Id: Ia1410abb216831864042f95679330f4508e1af3d </div>
<div style="display:none"> Gerrit-Change-Number: 10054 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: Stefan Sperling <ssperling@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: Stefan Sperling <ssperling@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: Pau Espin Pedrol <pespin@sysmocom.de> </div>