mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02:00
avformat/mov: make sure file_checksum is fully initialized
Fixes: use of uninitialized memory
Fixes: 394990189/clusterfuzz-testcase-minimized-ffmpeg_dem_MOV_fuzzer-6431722199908352
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 8b16e1ddd9)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
+3
-1
@@ -1018,7 +1018,9 @@ static int mov_read_adrm(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
||||
avio_read(pb, output, 8); // go to offset 8, absolute position 0x251
|
||||
avio_read(pb, input, DRM_BLOB_SIZE);
|
||||
avio_read(pb, output, 4); // go to offset 4, absolute position 0x28d
|
||||
avio_read(pb, file_checksum, 20);
|
||||
ret = ffio_read_size(pb, file_checksum, 20);
|
||||
if (ret < 0)
|
||||
goto fail;
|
||||
|
||||
av_log(c->fc, AV_LOG_INFO, "[aax] file checksum == "); // required by external tools
|
||||
for (i = 0; i < 20; i++)
|
||||
|
||||
Reference in New Issue
Block a user