<p> Attention is currently required from: Jaco Kroon. </p>
<p><a href="https://gerrit.asterisk.org/c/asterisk/+/17333">View Change</a></p><p>1 comment:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="null">File main/term.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.asterisk.org/c/asterisk/+/17333/comment/087f6002_1fa61e8e">Patch Set #1, Line 276:</a> </p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><pre style="font-family: monospace,monospace; white-space: pre-wrap;">           if (offset < 0) {<br>                  /* If we get here, the passed buffer is comically undersized, so just<br>                    gracefully bail out */<br>                     ast_copy_string(outbuf, inbuf, maxout);<br>                       return outbuf;<br>                }<br></pre></blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">FWIW - I really wanted to make this an assertion rather than an if statement, but it covers the case where you pass in a crazy small buffer. You might still end up with wonky escape sequences but that - in my opinion - would be a bug in the caller, not this code.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/17333">change 17333</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/+/17333"/><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: Ie460acf577faeb4a6d74062e22ea9f3ffd3233de </div>
<div style="display:none"> Gerrit-Change-Number: 17333 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Sean Bright <sean@seanbright.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: Jaco Kroon <jaco@uls.co.za> </div>
<div style="display:none"> Gerrit-Attention: Jaco Kroon <jaco@uls.co.za> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 11 Nov 2021 19:52:32 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>