[vlc-commits] interlacing: fix overlapping memory copy

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


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

interlacing: fix overlapping memory copy

(cherry picked from commit 2f1737e730e6e8844a93a32b236e36b16eb9bf33)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=7e421f7c753ca09e21d3c5dcfd109254cca36551
---

 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