diff options
author | Michael Niedermayer <[email protected]> | 2021-03-21 18:08:43 +0100 |
---|---|---|
committer | Michael Niedermayer <[email protected]> | 2021-04-01 11:38:44 +0200 |
commit | 5978b8bd9ce1680bbe412815d8a40ca2089177ab (patch) | |
tree | 0cc6396524dadfa9f4b7ebf01d84b001d06e9317 | |
parent | ac0e9506d00c55f77b236486d76d839e8f508991 (diff) |
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 <[email protected]>
(cherry picked from commit c1fe1114bc4c2f6da764f0eca792cf03c82c3422)
Signed-off-by: Michael Niedermayer <[email protected]>
-rw-r--r-- | libavformat/mov.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 73b9ad814e..50234f3b5f 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); |