[Ffmpeg-cvslog] r8544 - trunk/libavformat/mov.c

bcoudurier subversion
Thu Mar 29 12:37:08 CEST 2007


Author: bcoudurier
Date: Thu Mar 29 12:37:07 2007
New Revision: 8544

Modified:
   trunk/libavformat/mov.c

Log:
break if atom size is more than size left in container atom, fix shooter.mov

Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c	(original)
+++ trunk/libavformat/mov.c	Thu Mar 29 12:37:07 2007
@@ -250,7 +250,7 @@ static int mov_read_default(MOVContext *
 
         a.size -= 8;
 
-        if(a.size < 0)
+        if(a.size < 0 || a.size > atom.size - total_size)
             break;
 
         if (c->parse_table[i].type == 0) { /* skip leaf atoms data */




More information about the ffmpeg-cvslog mailing list