History

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

Michael Niedermayer committed 3 years ago

Commit 0c78b0d1 parent 6018f871 file · +4 −0Browse files

Unified · Split

libavformat/mov.c+4−0
@@ -1521,6 +1521,10 @@ static void mov_metadata_creation_time(MOVContext *c, AVIOContext *pb, AVDiction · 1520 unmodified lines
15211521 if (version == 1) {
15221522 time = avio_rb64(pb);
15231523 avio_rb64(pb);
1524+ if (time < 0) {
1525+ av_log(c->fc, AV_LOG_DEBUG, "creation_time is negative\n");
1526+ return;
1527+ }
15241528 } else {
15251529 time = avio_rb32(pb);
15261530 avio_rb32(pb); /* modification time */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t