<p>George Joseph <strong>submitted</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/16700">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  George Joseph: Looks good to me, approved; Approved for Submit

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">sig_analog: Fix truncated buffer copy<br><br>Fixes compiler warning caused by a truncated copy of the ANI2 into a<br>buffer of size 10. This could prevent the null terminator from being<br>copied if the copy value exceeds the size of the buffer. This increases<br>the buffer size to 101 to ensure there is no way for truncation to occur.<br><br>ASTERISK-29702 #close<br><br>Change-Id: Ief9052212952840fa44de6463b8699fdb3e163d0<br>---<br>M channels/sig_analog.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/channels/sig_analog.c b/channels/sig_analog.c</span><br><span>index 5bb5649..1af56e7 100644</span><br><span>--- a/channels/sig_analog.c</span><br><span>+++ b/channels/sig_analog.c</span><br><span>@@ -1967,7 +1967,7 @@</span><br><span>                       * this as a complete spill for the purposes of setting anistart */</span><br><span>                  if ((res > 0) || (strlen(anibuf) >= 2)) {</span><br><span>                              char anistart[2] = "X";</span><br><span style="color: hsl(0, 100%, 40%);">-                               char f[10] = {0};</span><br><span style="color: hsl(120, 100%, 40%);">+                             char f[101] = {0};</span><br><span>                           if (strchr("#ABC", anibuf[strlen(anibuf) - 1])) {</span><br><span>                                  anistart[0] = anibuf[strlen(anibuf) - 1];</span><br><span>                                    anibuf[strlen(anibuf) - 1] = 0;</span><br><span></span><br></pre><div style="white-space:pre-wrap"></div><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/16700">change 16700</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.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.asterisk.org/c/asterisk/+/16700"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-Change-Id: Ief9052212952840fa44de6463b8699fdb3e163d0 </div>
<div style="display:none"> Gerrit-Change-Number: 16700 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: N A <mail@interlinked.x10host.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>