<p>Corey Farrell <strong>posted comments</strong> on this change.</p><p><a href="https://gerrit.asterisk.org/8521">View Change</a></p><p>Patch set 4:</p><p style="white-space: pre-wrap; word-wrap: break-word;">Doing a test 'make' with/without MALLOC_DEBUG then I'll post the updates I have.</p><p>(2 comments)</p><ul style="list-style: none; padding-left: 20px;"><li><p><a href="https://gerrit.asterisk.org/#/c/8521/4/third-party/pjproject/patches/asterisk_malloc_debug.h">File third-party/pjproject/patches/asterisk_malloc_debug.h:</a></p><ul style="list-style: none; padding-left: 20px;"><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/8521/4/third-party/pjproject/patches/asterisk_malloc_debug.h@28">Patch Set #4, Line 28:</a> <code style="font-family:monospace,monospace">int __ast_asprintf(const char *file, int lineno, const char *func, char **strp, const char *format, ...)</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">This file needs to be reverted and then the attribute_malloc added where ap</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">I'm adding attribute_malloc but for now it's going to be a noop.  We don't have access to HAVE_ATTRIBUTE_malloc from here and I don't how to make that happen.</p><p style="white-space: pre-wrap; word-wrap: break-word;">That said I'm not sure we support any compiler which lacks support for __attribute__((malloc))?  We already require __attribute__((constructor)) and we require __sync or __atomic built-in's so I could just make Asterisk ./configure.ac bail if __attribute__((malloc)) is unsupported, then we could use it here unconditionally (this is master only).</p></li><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/8521/4/third-party/pjproject/patches/asterisk_malloc_debug.h@51">Patch Set #4, Line 51:</a> <code style="font-family:monospace,monospace">      __ast_asprintf(__FILE__, __LINE__, __PRETTY_FUNCTION__, a, b, c)</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">While I'm switching back to the __ast_repl variants I'm also giving these proper argument names.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/8521">change 8521</a>. To unsubscribe, 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/8521"/><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-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: If9df4377f74bdbb627461b27a473123e05525887 </div>
<div style="display:none"> Gerrit-Change-Number: 8521 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 15 Mar 2018 10:44:07 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>