[FFmpeg-cvslog] r16829 - trunk/libavformat/4xm.c
michael
subversion
Tue Jan 27 21:51:10 CET 2009
Author: michael
Date: Tue Jan 27 21:51:10 2009
New Revision: 16829
Log:
size < 4 is invalid
Modified:
trunk/libavformat/4xm.c
Modified: trunk/libavformat/4xm.c
==============================================================================
--- trunk/libavformat/4xm.c Tue Jan 27 21:06:13 2009 (r16828)
+++ trunk/libavformat/4xm.c Tue Jan 27 21:51:10 2009 (r16829)
@@ -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)
+ if (fourcc_tag != HEAD_TAG || size < 4)
return AVERROR_INVALIDDATA;
/* allocate space for the header and load the whole thing */
More information about the ffmpeg-cvslog
mailing list