<p>Sean Bright <strong>uploaded patch set #6</strong> to this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/14640">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">utf8.c: Add UTF-8 validation and utility functions<br><br>There are various places in Asterisk - specifically in regards to<br>database integration - where having some kind of UTF-8 validation would<br>be beneficial. This patch adds:<br><br>* Functions to validate that a given string contains only valid UTF-8<br>  sequences.<br><br>* A function to copy a string (similar to ast_copy_string) stopping when<br>  an invalid UTF-8 sequence is encountered.<br><br>* A UTF-8 validator that allows for progressive validation.<br><br>All of this is based on the excellent UTF-8 decoder by Björn Höhrmann.<br>More information is available here:<br><br>    https://bjoern.hoehrmann.de/utf-8/decoder/dfa/<br><br>The API was written in such a way that should allow us to replace the<br>implementation later should we determine that we need something more<br>comprehensive.<br><br>Change-Id: I3555d787a79e7c780a7800cd26e0b5056368abf9<br>---<br>A include/asterisk/utf8.h<br>M main/asterisk.c<br>A main/utf8.c<br>3 files changed, 572 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/40/14640/6</pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/14640">change 14640</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/+/14640"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-Change-Id: I3555d787a79e7c780a7800cd26e0b5056368abf9 </div>
<div style="display:none"> Gerrit-Change-Number: 14640 </div>
<div style="display:none"> Gerrit-PatchSet: 6 </div>
<div style="display:none"> Gerrit-Owner: Sean Bright <sean.bright@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-CC: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-CC: Stanislav Abramenkov <stas.abramenkov@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>