[vlc-commits] interlacing: fix overlapping memory copy

Rémi Denis-Courmont git at videolan.org
Fri Nov 14 18:40:30 CET 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Nov 14 19:39:19 2014 +0200| [2f1737e730e6e8844a93a32b236e36b16eb9bf33] | committer: Rémi Denis-Courmont

interlacing: fix overlapping memory copy

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2f1737e730e6e8844a93a32b236e36b16eb9bf33
---

 src/video_output/interlacing.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/video_output/interlacing.c b/src/video_output/interlacing.c
index 13ec36f..6177a3a 100644
--- a/src/video_output/interlacing.c
+++ b/src/video_output/interlacing.c
@@ -103,7 +103,7 @@ static void DeinterlaceRemove(vout_thread_t *vout)
     /* */
     strcpy(&start[0], &start[strlen("deinterlace")]);
     if (*start == ':')
-        strcpy(&start[0], &start[1]);
+        memmove(start, start + 1, strlen(start) /* + 1 - 1 */);
 
     var_SetString(vout, "video-filter", filter);
     free(filter);



More information about the vlc-commits mailing list