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

Martin Mikkelsen mamikk+sr at mamikk.no
Tue Apr 30 13:31:41 CEST 2013


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.

-- 
Martin Mikkelsen, Zisson AS
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pv-substr-fix.patch
Type: text/x-diff
Size: 548 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130430/238cdc5e/attachment.patch>


More information about the sr-users mailing list