mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 19:30:05 +00:00
better header_size check
Originally committed as revision 16830 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
4698bb2457
commit
59afda9f61
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user