[SR-Users] [PATCH] Memory corruption using s.substr transformation

Andreas Granig agranig at sipwise.com
Tue Apr 30 14:42:22 CEST 2013


Hi,

We've seen this behaviour as well and worked around it using avp_subst 
with regex, as we didn't have the time yet to investigate further.

But basically I can confirm this issue.

Andreas

On 04/30/2013 01:31 PM, Martin Mikkelsen wrote:
> On Tue, Apr 30, 2013 at 01:29:21PM +0200, Martin Mikkelsen wrote:
>> I am not sure what the best fix would be for that, but I have attached a
>> patch which copies the string in the TR_S_SUBST code to _tr_buffer and
>> returns that buffer instead like a lot of the other transformations in
>> that function does.
>>
>> If this fix is correct some other transformation functions probably
>> needs to be corrected as well.
>
> Forgot to attach the patch. Sorry.
>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>



More information about the sr-users mailing list