Hi! Attached patch is supposed to fix a memleak from clusterfuzz, untested...
Please review, Carl Eugen
From f94d6415885293351201e74a3760aae7f206515a Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos <ceffm...@gmail.com> Date: Tue, 4 Dec 2018 00:32:25 +0100 Subject: [PATCH] lavc/ivi: Free an allocation on error. Fixes a memleak reported as Issue 11696 in oss-fuzz. --- libavcodec/ivi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/ivi.c b/libavcodec/ivi.c index b23d4af..19bb01e 100644 --- a/libavcodec/ivi.c +++ b/libavcodec/ivi.c @@ -406,6 +406,7 @@ static int ivi_init_tiles(IVIBandDesc *band, IVITile *ref_tile, if (p || b) { if (tile->num_MBs != ref_tile->num_MBs) { av_log(NULL, AV_LOG_DEBUG, "ref_tile mismatch\n"); + av_freep(&tile->mbs); return AVERROR_INVALIDDATA; } tile->ref_mbs = ref_tile->mbs; -- 1.7.10.4
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel