<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmocom-bb/+/14848">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">virtphy: Fix array out of bounds access in getL1ctlPrimName()<br><br>Closes: CID#198573<br>Change-Id: I6504a7ffcf961d3162e6ab2ec8f5f2016ef12cde<br>---<br>M src/host/virt_phy/src/logging.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/48/14848/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/host/virt_phy/src/logging.c b/src/host/virt_phy/src/logging.c</span><br><span>index a3e63bc..7e4e79b 100644</span><br><span>--- a/src/host/virt_phy/src/logging.c</span><br><span>+++ b/src/host/virt_phy/src/logging.c</span><br><span>@@ -128,7 +128,7 @@</span><br><span> </span><br><span> const char *getL1ctlPrimName(uint8_t type)</span><br><span> {</span><br><span style="color: hsl(0, 100%, 40%);">-   if (type <= ARRAY_SIZE(l1ctlPrimNames))</span><br><span style="color: hsl(120, 100%, 40%);">+    if (type < ARRAY_SIZE(l1ctlPrimNames))</span><br><span>            return l1ctlPrimNames[type];</span><br><span>         else</span><br><span>                 return "Unknwon Primitive";</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmocom-bb/+/14848">change 14848</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/osmocom-bb/+/14848"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmocom-bb </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I6504a7ffcf961d3162e6ab2ec8f5f2016ef12cde </div>
<div style="display:none"> Gerrit-Change-Number: 14848 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>