From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id AD2044C00D for ; Sun, 22 Jun 2025 04:40:40 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 8501B68BF0F; Sun, 22 Jun 2025 07:40:38 +0300 (EEST) Received: from mx.sdf.org (mx.sdf.org [205.166.94.24]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id EA3AC68CDC2 for ; Sun, 22 Jun 2025 07:40:31 +0300 (EEST) Received: from d68bcc34515074c2bef9ef642706ab6e ([1.136.108.149]) (authenticated (0 bits)) by mx.sdf.org (8.18.1/8.14.3) with ESMTPSA id 55M4eOuX019122 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO) for ; Sun, 22 Jun 2025 04:40:28 GMT Date: Sun, 22 Jun 2025 14:40:23 +1000 From: Peter Ross To: FFmpeg development discussions and patches Message-ID: Mail-Followup-To: FFmpeg development discussions and patches References: <20250621211521.895204-1-michael@niedermayer.cc> <20250621211521.895204-4-michael@niedermayer.cc> MIME-Version: 1.0 In-Reply-To: <20250621211521.895204-4-michael@niedermayer.cc> Subject: Re: [FFmpeg-devel] [PATCH 4/5] avformat/iff: Check nb_channels == 0 in CHNL 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 Content-Type: multipart/mixed; boundary="===============7135536598641406881==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============7135536598641406881== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3Ka7RYzMolrQBK1o" Content-Disposition: inline --3Ka7RYzMolrQBK1o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jun 21, 2025 at 11:15:20PM +0200, Michael Niedermayer wrote: > Fixes: division by 0 > Fixes: 418396712/clusterfuzz-testcase-minimized-ffmpeg_dem_IFF_fuzzer-610= 4388018176000 > Fixes: 418478219/clusterfuzz-testcase-minimized-ffmpeg_dem_IFF_fuzzer-456= 9544410857472 >=20 > Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/t= ree/master/projects/ffmpeg > Signed-off-by: Michael Niedermayer > --- > libavformat/iff.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/libavformat/iff.c b/libavformat/iff.c > index 9402be48c98..4ff10beb38a 100644 > --- a/libavformat/iff.c > +++ b/libavformat/iff.c > @@ -284,7 +284,7 @@ static int parse_dsd_prop(AVFormatContext *s, AVStrea= m *st, uint64_t eof) > return AVERROR_INVALIDDATA; > st->codecpar->ch_layout.order =3D AV_CHANNEL_ORDER_UNS= PEC; > st->codecpar->ch_layout.nb_channels =3D avio_rb16(pb); > - if (size < 2 + st->codecpar->ch_layout.nb_channels * 4) > + if (size < 2 + st->codecpar->ch_layout.nb_channels * 4 || !s= t->codecpar->ch_layout.nb_channels) > return AVERROR_INVALIDDATA; > if (st->codecpar->ch_layout.nb_channels > FF_ARRAY_ELEMS(dsd= _layout)) { > avpriv_request_sample(s, "channel layout"); please apply -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) --3Ka7RYzMolrQBK1o Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQSpB+AvpuUM0jTNINJnYHnFrEDdawUCaFeJNwAKCRBnYHnFrEDd axLOAKCYdVwSqwBJi3tglc+T+jRnrE143QCggJxLfBffJjczHOk+bAEmBbzkjMI= =/dyH -----END PGP SIGNATURE----- --3Ka7RYzMolrQBK1o-- --===============7135536598641406881== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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". --===============7135536598641406881==--