mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
avformat/mov: creation time should be non negative
Fixes: signed integer overflow: -9223372036854775808 - 2082844800 cannot be represented in type 'long' Fixes: 58384/clusterfuzz-testcase-minimized-ffmpeg_dem_MOV_fuzzer-6428383700713472 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
6018f87599
commit
0c78b0dd3b
@ -1521,6 +1521,10 @@ static void mov_metadata_creation_time(MOVContext *c, AVIOContext *pb, AVDiction
|
||||
if (version == 1) {
|
||||
time = avio_rb64(pb);
|
||||
avio_rb64(pb);
|
||||
if (time < 0) {
|
||||
av_log(c->fc, AV_LOG_DEBUG, "creation_time is negative\n");
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
time = avio_rb32(pb);
|
||||
avio_rb32(pb); /* modification time */
|
||||
|
Loading…
Reference in New Issue
Block a user