diff options
author | John Rummell <jrummell@chromium.org> | 2020-03-30 14:08:01 -0700 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2020-07-01 12:49:26 +0200 |
commit | d0a74df81bc69cdcedbe977796330ccb5856a71f (patch) | |
tree | 5fa9ae35589f32cb1f865e10e5b893e21c89266d | |
parent | 77620689e5d9fe6def8b44d25222dc2898310b78 (diff) | |
download | ffmpeg-d0a74df81bc69cdcedbe977796330ccb5856a71f.tar.gz |
libavformat/mov.c: Free aes_decrypt to avoid leaking memory
Found by Chromium fuzzers (crbug.com/1057205).
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit ad91cf1f2f5793db5c6dd7ab9947fcc6d7832607)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavformat/mov.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index da073b025b..993e1ed252 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -1006,6 +1006,7 @@ static int mov_read_adrm(MOVContext *c, AVIOContext *pb, MOVAtom atom) sha = av_sha_alloc(); if (!sha) return AVERROR(ENOMEM); + av_free(c->aes_decrypt); c->aes_decrypt = av_aes_alloc(); if (!c->aes_decrypt) { ret = AVERROR(ENOMEM); |