Browse Source

size < 4 is invalid

Originally committed as revision 16829 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 17 years ago
parent
commit
4698bb2457
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/4xm.c

+ 1
- 1
libavformat/4xm.c View File

@@ -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 */


Loading…
Cancel
Save