提交 59afda9f 编写于 作者: M Michael Niedermayer

better header_size check

Originally committed as revision 16830 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 4698bb24
......@@ -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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册