<p>UNIX_PATH_MAX is used to validate string length before memcpy() to sun_path.</p>

<p><a href="https://github.com/kamailio/kamailio/blob/master/lib/binrpc/binrpc_api.c#L148">https://github.com/kamailio/kamailio/blob/master/lib/binrpc/binrpc_api.c#L148</a><br>
<a href="https://github.com/kamailio/kamailio/blob/master/modules/ctl/init_socks.c#L94">https://github.com/kamailio/kamailio/blob/master/modules/ctl/init_socks.c#L94</a><br>
<a href="https://github.com/kamailio/kamailio/blob/master/utils/kamcmd/kamcmd.c#L489">https://github.com/kamailio/kamailio/blob/master/utils/kamcmd/kamcmd.c#L489</a></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly or <a href="https://github.com/kamailio/kamailio/pull/589#issuecomment-215412173">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZS8v1NlP1_WKB8Ydd9wVtpq4GWYOks5p8KwFgaJpZM4IR27K.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/pull/589#issuecomment-215412173"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>