aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2021-03-21 18:08:43 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2021-03-31 23:09:35 +0200
commitc1fe1114bc4c2f6da764f0eca792cf03c82c3422 (patch)
tree28edd4c978b949288a891855e9b260c60149920d
parent87d87e6587deec1fa8ed5f5c6901535becdb0358 (diff)
downloadffmpeg-c1fe1114bc4c2f6da764f0eca792cf03c82c3422.tar.gz
avformat/mov: Do not zero memory that is written too or unused
Fixes: OOM Fixes: 31220/clusterfuzz-testcase-minimized-ffmpeg_dem_MOV_fuzzer-6033383962574848 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavformat/mov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index f4c2215ba4..a1411264ec 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -3022,7 +3022,7 @@ static int mov_read_sdtp(MOVContext *c, AVIOContext *pb, MOVAtom atom)
av_freep(&sc->sdtp_data);
sc->sdtp_count = 0;
- sc->sdtp_data = av_mallocz(entries);
+ sc->sdtp_data = av_malloc(entries);
if (!sc->sdtp_data)
return AVERROR(ENOMEM);