<p>Harald Welte <strong>uploaded patch set #3</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/12641">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">constrain gsm48_generate_mid() output array bounds<br><br>The longest BCd-digit type identity is the IMEISV with 16, so there's<br>no point in trying to parse up to 255 decimal digits, which will do<br>nothing but to overflow the caller-provided output buffer.<br><br>Let's also clearly define the required minimum size of the output<br>buffer and add a reltead #define for it.<br><br>Change-Id: Ic8488bc7f77dc9182e372741b88f0f06100dddc9<br>---<br>M include/osmocom/gsm/gsm48.h<br>M src/gb/gprs_bssgp.c<br>M src/gb/gprs_bssgp_bss.c<br>M src/gsm/gsm48.c<br>4 files changed, 12 insertions(+), 7 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/41/12641/3</pre><p>To view, visit <a href="https://gerrit.osmocom.org/12641">change 12641</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/12641"/><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-MessageType: newpatchset </div>
<div style="display:none"> Gerrit-Change-Id: Ic8488bc7f77dc9182e372741b88f0f06100dddc9 </div>
<div style="display:none"> Gerrit-Change-Number: 12641 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-CC: Vadim Yanitskiy <axilirator@gmail.com> </div>