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

Martin Mikkelsen mamikk at mamikk.no
Thu May 2 19:55:10 CEST 2013


On Wed, May 01, 2013 at 11:04:28AM +0200, Alex Hermann wrote:
> strncpy() must be replaced with memmove() when src and dst (may) overlap.

You are right, it is probably better to do the copying with memove(), then we
dont have to fixup all the transformation functions.

-- 
Martin Mikkelsen (mamikk at mamikk.no)
http://www.mamikk.no/



More information about the sr-users mailing list