mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
avformat/iff: Check size before skip
Fixes: Infinite loop Fixes: 27292/clusterfuzz-testcase-minimized-ffmpeg_dem_IFF_fuzzer-5731168991051776 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
ebf4bc629e
commit
8b50e8bc29
@ -259,6 +259,9 @@ static int parse_dsd_prop(AVFormatContext *s, AVStream *st, uint64_t eof)
|
|||||||
uint64_t size = avio_rb64(pb);
|
uint64_t size = avio_rb64(pb);
|
||||||
uint64_t orig_pos = avio_tell(pb);
|
uint64_t orig_pos = avio_tell(pb);
|
||||||
|
|
||||||
|
if (size >= INT64_MAX)
|
||||||
|
return AVERROR_INVALIDDATA;
|
||||||
|
|
||||||
switch(tag) {
|
switch(tag) {
|
||||||
case MKTAG('A','B','S','S'):
|
case MKTAG('A','B','S','S'):
|
||||||
if (size < 8)
|
if (size < 8)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user