[vdr] [PATCH] fix plugin arguments corruption

Anssi Hannula anssi.hannula at iki.fi
Wed Jan 6 12:11:21 CET 2010

VDR uses the construct "strcpy(s, s + 1)" in plugin arguments processing for 
stripping first character of s. However, as per strcpy man page, the source 
and destination strings may not overlap.

There are a couple of ways to fix them, but the attached patch simply changes 
them to "memmove(s, s + 1, strlen(s))". The patch applies both to 1.7.10 and 

This fixes plugin arguments corruption with glibc 2.11 on x86_64.

Anssi Hannula
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vdr-fix-overlapping-strcpy.patch
Type: text/x-patch
Size: 925 bytes
Desc: not available
URL: <http://www.linuxtv.org/pipermail/vdr/attachments/20100106/04187f7b/attachment.bin>

More information about the vdr mailing list