Commit ad91cf1f authored by John Rummell's avatar John Rummell Committed by Michael Niedermayer

libavformat/mov.c: Free aes_decrypt to avoid leaking memory

Found by Chromium fuzzers (crbug.com/1057205).
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent b7c67b1a
......@@ -1005,6 +1005,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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment