<p>laforge <strong>uploaded patch set #3</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/22113">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">tlv_parser: Fix various out-of-bounds accesses<br><br>The libosmocore TLV parser had a number of insufficient bounds checks<br>leading to reads beyond the end of the respective input buffer.<br><br>This patch<br>* adds proper out-of-bounds checks to all TLV types<br>* simplifies some of the existing checks<br>* introduces test cases to test all the corner cases<br>  where either TAG, or length, or value are not fully contained<br>  in the input buffer.<br><br>Thanks to Ilja Van Sprundel for reporting these problems.<br><br>Change-Id: I98b02c914c9e3ecf56050af846292aa6979d7508<br>---<br>M src/gsm/tlv_parser.c<br>M tests/tlv/tlv_test.c<br>M tests/tlv/tlv_test.ok<br>3 files changed, 115 insertions(+), 15 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/13/22113/3</pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/22113">change 22113</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/libosmocore/+/22113"/><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-Change-Id: I98b02c914c9e3ecf56050af846292aa6979d7508 </div>
<div style="display:none"> Gerrit-Change-Number: 22113 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>