[FFmpeg-cvslog] r20889 - trunk/libavformat/tta.c

jai_menon subversion
Thu Dec 17 14:05:37 CET 2009


Author: jai_menon
Date: Thu Dec 17 14:05:37 2009
New Revision: 20889

Log:
10l : make sure probe buffer is large enough.

Modified:
   trunk/libavformat/tta.c

Modified: trunk/libavformat/tta.c
==============================================================================
--- trunk/libavformat/tta.c	Wed Dec 16 22:24:04 2009	(r20888)
+++ trunk/libavformat/tta.c	Thu Dec 17 14:05:37 2009	(r20889)
@@ -35,6 +35,9 @@ static int tta_probe(AVProbeData *p)
     if (ff_id3v2_match(d))
         d += ff_id3v2_tag_len(d);
 
+    if (d - p->buf >= p->buf_size)
+        return 0;
+
     if (d[0] == 'T' && d[1] == 'T' && d[2] == 'A' && d[3] == '1')
         return 80;
     return 0;



More information about the ffmpeg-cvslog mailing list