[Ffmpeg-cvslog] r6910 - trunk/libavcodec/fraps.c

kostya subversion
Mon Nov 6 07:13:29 CET 2006


Author: kostya
Date: Mon Nov  6 07:13:29 2006
New Revision: 6910

Modified:
   trunk/libavcodec/fraps.c

Log:
Check for symbol count

Modified: trunk/libavcodec/fraps.c
==============================================================================
--- trunk/libavcodec/fraps.c	(original)
+++ trunk/libavcodec/fraps.c	Mon Nov  6 07:13:29 2006
@@ -140,6 +140,10 @@
         s->nodes[i].sym = i;
         s->nodes[i].count = LE_32(src);
         s->nodes[i].n0 = -2;
+        if(s->nodes[i].count < 0) {
+            av_log(s->avctx, AV_LOG_ERROR, "Symbol count < 0\n");
+            return -1;
+        }
         src += 4;
         sum += s->nodes[i].count;
     }




More information about the ffmpeg-cvslog mailing list