Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-01-28 00:01:47 +0300
committerMichael Niedermayer <michaelni@gmx.at>2009-01-28 00:01:47 +0300
commit59afda9f61c8d3b23699e72939858ce25b4ed2a8 (patch)
tree86e13ab6cb0987d873e29df95546506f75e2e07c /libavformat/4xm.c
parent4698bb245740d53477a0109e96fb4c67338078da (diff)
better header_size check
Originally committed as revision 16830 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/4xm.c')
-rw-r--r--libavformat/4xm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/4xm.c b/libavformat/4xm.c
index af57c6c5b6..30d240310c 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 || size < 4)
+ if (fourcc_tag != HEAD_TAG || header_size < 0)
return AVERROR_INVALIDDATA;
/* allocate space for the header and load the whole thing */