<p><a href="https://gerrit.osmocom.org/11765">View Change</a></p><p>1 comment:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/11765/1/src/osmo-bts-trx/trx_if.c">File src/osmo-bts-trx/trx_if.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/11765/1/src/osmo-bts-trx/trx_if.c@388">Patch Set #1, Line 388:</a> <code style="font-family:monospace,monospace">sizeof</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">I am afraid there is a risk of: https://www.geeksforgeeks. […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Size of cmd is defined explicitly here, it's fine (and it' also specified as fine in the example you shared).</p><p style="white-space: pre-wrap; word-wrap: break-word;">The issue is when you pass an array without a size specified explicitly beforehand, because the compiler cannot know the size of the array for each caller (specially when compiling a shared object).</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/11765">change 11765</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/11765"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bts </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: Icb84bce0621042afa4301678ba1cc58d8e3662bb </div>
<div style="display:none"> Gerrit-Change-Number: 11765 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: Vadim Yanitskiy <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Wed, 14 Nov 2018 10:26:06 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: No </div>