[FFmpeg-devel] [PATCH] avcodec/utils, avcodec_open2: close codec on failure
Michael Niedermayer
michael at niedermayer.cc
Wed Jul 10 13:55:58 EEST 2019
On Tue, Jul 09, 2019 at 07:03:58PM -0700, James Zern wrote:
> after a successful init if the function fails for another reason close
> the codec without requiring FF_CODEC_CAP_INIT_CLEANUP which is meant to
> cover init failures themselves. fixes a memory leak in those cases.
>
> BUG=oss-fuzz:15529
>
> Signed-off-by: James Zern <jzern at google.com>
> ---
> libavcodec/utils.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
will apply
thanks
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Everything should be made as simple as possible, but not simpler.
-- Albert Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190710/f0482d48/attachment.sig>
More information about the ffmpeg-devel
mailing list