From 792ed706efeef84c5b82abf982078daad15f5d6c Mon Sep 17 00:00:00 2001 From: pabs Date: Wed, 26 Dec 2007 23:16:57 +0000 Subject: [PATCH] Fix issue in unused mod_ffmpeg importer security fixes; read from the ffmpeg output pipe, don't write to it. git-svn-id: http://svn.voria.com/code@1231 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/modules/mod_ffmpeg/mptr_ffmpeg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synfig-core/trunk/src/modules/mod_ffmpeg/mptr_ffmpeg.cpp b/synfig-core/trunk/src/modules/mod_ffmpeg/mptr_ffmpeg.cpp index f05b2d4..f1f7e0b 100644 --- a/synfig-core/trunk/src/modules/mod_ffmpeg/mptr_ffmpeg.cpp +++ b/synfig-core/trunk/src/modules/mod_ffmpeg/mptr_ffmpeg.cpp @@ -104,8 +104,8 @@ ffmpeg_mptr::seek_to(int frame) // Parent process // Close pipeout, not needed close(p[1]); - // Save pipeout to file handle, will write to it later - file = fdopen(p[0], "wb"); + // Save pipein to file handle, will read from it later + file = fdopen(p[0], "rb"); } if(!file) -- 2.7.4