diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-01-27 20:51:10 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-01-27 20:51:10 +0000 |
commit | 4698bb245740d53477a0109e96fb4c67338078da (patch) | |
tree | 532e59b8b930fb41154131ade79c4b3922bc6bab | |
parent | f7ad5aa2e810ac3b341d1681db3288a404b001ee (diff) | |
download | ffmpeg-4698bb245740d53477a0109e96fb4c67338078da.tar.gz |
size < 4 is invalid
Originally committed as revision 16829 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/4xm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/4xm.c b/libavformat/4xm.c index c792a776ef..af57c6c5b6 100644 --- a/libavformat/4xm.c +++ b/libavformat/4xm.c @@ -114,7 +114,7 @@ static int fourxm_read_header(AVFormatContext *s, /* check for LIST-HEAD */ GET_LIST_HEADER(); header_size = size - 4; - if (fourcc_tag != HEAD_TAG) + if (fourcc_tag != HEAD_TAG || size < 4) return AVERROR_INVALIDDATA; /* allocate space for the header and load the whole thing */ |