mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avformat/avidec: Use 64bit for frame number in odml index parsing
Fixes: signed integer overflow: 1179337772 + 1392508928 cannot be represented in type 'int' Fixes: 34088/clusterfuzz-testcase-minimized-ffmpeg_dem_AVI_fuzzer-5846945303232512 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
104a8399ae
commit
a4c98c507e
@ -164,7 +164,7 @@ static int get_riff(AVFormatContext *s, AVIOContext *pb)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int read_odml_index(AVFormatContext *s, int frame_num)
|
||||
static int read_odml_index(AVFormatContext *s, int64_t frame_num)
|
||||
{
|
||||
AVIContext *avi = s->priv_data;
|
||||
AVIOContext *pb = s->pb;
|
||||
@ -184,7 +184,7 @@ static int read_odml_index(AVFormatContext *s, int frame_num)
|
||||
|
||||
av_log(s, AV_LOG_TRACE,
|
||||
"longs_per_entry:%d index_type:%d entries_in_use:%d "
|
||||
"chunk_id:%X base:%16"PRIX64" frame_num:%d\n",
|
||||
"chunk_id:%X base:%16"PRIX64" frame_num:%"PRId64"\n",
|
||||
longs_per_entry,
|
||||
index_type,
|
||||
entries_in_use,
|
||||
|
Loading…
Reference in New Issue
Block a user