[FFmpeg-cvslog] r16830 - trunk/libavformat/4xm.c
michael
subversion
Tue Jan 27 22:01:47 CET 2009
Author: michael
Date: Tue Jan 27 22:01:47 2009
New Revision: 16830
Log:
better header_size check
Modified:
trunk/libavformat/4xm.c
Modified: trunk/libavformat/4xm.c
==============================================================================
--- trunk/libavformat/4xm.c Tue Jan 27 21:51:10 2009 (r16829)
+++ trunk/libavformat/4xm.c Tue Jan 27 22:01:47 2009 (r16830)
@@ -114,7 +114,7 @@ static int fourxm_read_header(AVFormatCo
/* 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 */
More information about the ffmpeg-cvslog
mailing list