From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 3A5F44A605 for ; Mon, 1 Apr 2024 20:56:17 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4020268CF40; Mon, 1 Apr 2024 23:56:15 +0300 (EEST) Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E942868C9CF for ; Mon, 1 Apr 2024 23:56:08 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 40FEC240004 for ; Mon, 1 Apr 2024 20:56:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1712004968; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc; bh=xKLDXiKc/j+7SUIvk6PrIM41p6wWMxC8/+btYq6w910=; b=WMvpmt0r8J4t74/uHnThQNUZYpau2d+j8VCyHWHNi6/h2JLcrNvXvfJVaqfQrhgwDhkkYn 5bJh9TBV/T/vpiFMM+G1SK+F8aGW3C+zfX59D5p5nw7d2Zosqd4P0+9jUho2FBlq8vdK7N UXgxYdM7fG1kJZ+w4hVDaRYnDYklVyvj8j84HTUF/dL0VWdOZlrwhPMX4WVv09bLtdka0h 6WwM89FoTfy2kigZTehhfLze0dzzwkG3eLXzsU4+Qwu9iU1dbKavIZ+VzeLiVJp0DAEwAO 052d6Nuh5DMOCBcEyWEXIKwxqmLHjd7Ju50jonJ2HEevydvByo4Ukp5e8u9Eiw== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Mon, 1 Apr 2024 22:56:02 +0200 Message-Id: <20240401205607.9093-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.17.1 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 1/6] avformat/isom: Uninit layout in ff_mp4_read_dec_config_descr() X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Fixes: memleak Fixes: 67442/clusterfuzz-testcase-minimized-ffmpeg_dem_CAF_fuzzer-5068813261406208 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavformat/isom.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/isom.c b/libavformat/isom.c index 9fbccd4437f..c5930bd4d87 100644 --- a/libavformat/isom.c +++ b/libavformat/isom.c @@ -359,6 +359,7 @@ int ff_mp4_read_dec_config_descr(AVFormatContext *fc, AVStream *st, AVIOContext st->codecpar->extradata_size, 1, fc); if (ret < 0) return ret; + av_channel_layout_uninit(&st->codecpar->ch_layout); st->codecpar->ch_layout.order = AV_CHANNEL_ORDER_UNSPEC; st->codecpar->ch_layout.nb_channels = cfg.channels; if (cfg.object_type == 29 && cfg.sampling_index < 3) // old mp3on4 -- 2.17.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".