<p>N A has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/16630">View Change</a></p><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;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/30/16630/1</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><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/16630">change 16630</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/+/16630"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ief9052212952840fa44de6463b8699fdb3e163d0 </div>
<div style="display:none"> Gerrit-Change-Number: 16630 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: N A <mail@interlinked.x10host.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>