aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorJai Menon <jmenon86@gmail.com>2009-12-17 13:05:37 +0000
committerJai Menon <jmenon86@gmail.com>2009-12-17 13:05:37 +0000
commit8993535cbbbcd7561164260d547ad51484397785 (patch)
tree5d37a3f24111352b5a95d306d59af50d073e040b /libavformat
parent134271c232f6cb497fc66ae938008b11201be2ab (diff)
downloadffmpeg-8993535cbbbcd7561164260d547ad51484397785.tar.gz
10l : make sure probe buffer is large enough.
Originally committed as revision 20889 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/tta.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/tta.c b/libavformat/tta.c
index 9d0af2b7e2..e5b9e5f4ed 100644
--- a/libavformat/tta.c
+++ b/libavformat/tta.c
@@ -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;