<p>i am using ha1 column<br>
after executing the query for authorization for Subscriber table  , then tries to access the result of the query (see below)</p>

<ol>
<li>result.s = (char<em>)ROW_VALUES(RES_ROWS(</em>res))[0].val.string_val; (authorize.c:126)</li>
<li>result.len = strlen(result.s);</li>
</ol>

<p>opensips crashes while using strlen function in above point 2 because it gets address out of bound in above string (point1) . </p>

<p>I dont know why it is getting invalid address .i am also not closing database here .</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/688#issuecomment-156056411">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciWGQTfwhvf4IsOC_J0vXn06UZMFpks5pFFwVgaJpZM4Ga01W.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/OpenSIPS/opensips/issues/688#issuecomment-156056411"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>