Commit 5f03ddcb authored by michael's avatar michael

better header_size check


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16830 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2ce50a74
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment