[FFmpeg-cvslog] avi: directly resync on DV in AVI read failure

Luca Barbato git at videolan.org
Mon Mar 10 18:12:01 CET 2014


ffmpeg | branch: release/0.10 | Luca Barbato <lu_zero at gentoo.org> | Tue Aug  6 03:52:48 2013 +0200| [976a7b72a3f51c18fee573985987bdcdd445af0d] | committer: Reinhard Tartler

avi: directly resync on DV in AVI read failure

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable at libav.org
(cherry picked from commit ceec6e792e4b5baaa23b220f4fd33417631f5288)
Signed-off-by: Reinhard Tartler <siretart at tauware.de>

Adresses CVE-2013-0856
(cherry picked from commit 61057f4604eb909ac2b37f08c7d2b0ed758fd4bf)
Signed-off-by: Reinhard Tartler <siretart at tauware.de>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=976a7b72a3f51c18fee573985987bdcdd445af0d
---

 libavformat/avidec.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 11d086c..8d06c9a 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -986,6 +986,8 @@ static int avi_read_packet(AVFormatContext *s, AVPacket *pkt)
         int size = avpriv_dv_get_packet(avi->dv_demux, pkt);
         if (size >= 0)
             return size;
+        else
+            goto resync;
     }
 
     if(avi->non_interleaved){



More information about the ffmpeg-cvslog mailing list