<p>Alexei Gradinari <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/15493">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_fax: validate the remote/local Station ID for UTF-8 format<br><br>If the remote Station ID contains invalid UTF-8 characters<br>the asterisk fails to publish the Stasis and ReceiveFax status messages.<br><br>json.c: Error building JSON from '{s: s, s: s}': Invalid UTF-8 string.<br>0: /usr/sbin/asterisk(ast_json_vpack+0x98) [0x4f3f28]<br>1: /usr/sbin/asterisk(ast_json_pack+0x8c) [0x4f3fcc]<br>2: /usr/sbin/asterisk(ast_channel_publish_varset+0x2b) [0x57aa0b]<br>3: /usr/sbin/asterisk(pbx_builtin_setvar_helper+0x121) [0x530641]<br>4: /usr/lib64/asterisk/modules/res_fax.so(+0x44fe) [0x7f27f4bff4fe]<br>...<br>stasis_channels.c: Error creating message<br><br>json.c: Error building JSON from '{s: s, s: s, s: s, s: s, s: s, s: s, s: o}': Invalid UTF-8 string.<br>0: /usr/sbin/asterisk(ast_json_vpack+0x98) [0x4f3f28]<br>1: /usr/sbin/asterisk(ast_json_pack+0x8c) [0x4f3fcc]<br>2: /usr/lib64/asterisk/modules/res_fax.so(+0x5acd) [0x7f27f4c00acd]<br>...<br>res_fax.c: Error publishing ReceiveFax status message<br><br>This patch replaces the invalid UTF-8 Station IDs with an empty string.<br><br>Change-Id: Ieb00b6ecf67db3bfca787649caa8517f29d987db<br>---<br>M res/res_fax.c<br>1 file changed, 6 insertions(+), 6 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/93/15493/2</pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/15493">change 15493</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/+/15493"/><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: Ieb00b6ecf67db3bfca787649caa8517f29d987db </div>
<div style="display:none"> Gerrit-Change-Number: 15493 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Alexei Gradinari <alex2grad@gmail.com> </div>
<div style="display:none"> Gerrit-CC: Friendly Automation </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>