[FFmpeg-cvslog] r24803 - trunk/libavformat/matroskadec.c

aurel subversion
Tue Aug 17 16:05:23 CEST 2010


Author: aurel
Date: Tue Aug 17 16:05:23 2010
New Revision: 24803

Log:
matroskadec: fix integer overflow
patch from reimar

Modified:
   trunk/libavformat/matroskadec.c

Modified: trunk/libavformat/matroskadec.c
==============================================================================
--- trunk/libavformat/matroskadec.c	Tue Aug 17 10:13:14 2010	(r24802)
+++ trunk/libavformat/matroskadec.c	Tue Aug 17 16:05:23 2010	(r24803)
@@ -901,6 +901,9 @@ static int matroska_decode_buffer(uint8_
     int result = 0;
     int olen;
 
+    if (pkt_size >= 10000000)
+        return -1;
+
     switch (encodings[0].compression.algo) {
     case MATROSKA_TRACK_ENCODING_COMP_HEADERSTRIP:
         return encodings[0].compression.settings.size;



More information about the ffmpeg-cvslog mailing list