[FFmpeg-devel] [PATCH] libavformat/mov.c: Free aes_decrypt to avoid leaking memory

John Rummell jrummell at chromium.org
Tue Mar 31 23:30:22 EEST 2020


Thanks. Updated.

On Tue, Mar 31, 2020 at 5:23 AM Moritz Barsnick <barsnick at gmx.net> wrote:

> On Mon, Mar 30, 2020 at 15:27:46 -0700, John Rummell wrote:
> > +    if (c->aes_decrypt)
> > +        av_free(c->aes_decrypt);
>
> av_free() already does the NULL pointer check for you.
>
> Moritz
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libavformat-mov.c-Free-aes_decrypt-to-avoid-leaking-.patch
Type: application/octet-stream
Size: 807 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200331/2235c387/attachment.obj>


More information about the ffmpeg-devel mailing list