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 ESMTPS id 427624C703 for ; Fri, 9 May 2025 09:25:29 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1B4A068C361; Fri, 9 May 2025 12:25:24 +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 3E5FF68A59A for ; Fri, 9 May 2025 12:25:18 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 9089F432ED for ; Fri, 9 May 2025 09:25:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1746782717; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5wqqJSMSk2DMUFyV4Sw5slor+YtsK3s4OpVoG8EpZZE=; b=FywdtwyUENWL0e1V0Z2+4IvrY/GxjC6/CMRkToGfp+8zG8guWejY0EUby11RpjnktZ8XAb XZPiA81YHdiGL6R+Vx37j3w0varNkPagwUEN6R0F5dlDzfqq4BrDpyiJp+kjJKn3AGuEf/ 4T57DaUJ7P8HHcZHiWFjuBnYoYQ/+jHxFjTcG7OC/v79wCBaFXmaHYPMk7tVwd2/CcbqOP ldYNUZObPiazlRdHdr8vBzjSIK5MVZiyTcP3PkJyHeikFfUK2UQ3RK5JbguXNQ3iP4CoeX 8qwtqrsfnAkMgWJez1gzTFKvC58xuhLWxydx/IbvhTQB6+Cy2kSrb0julR68Hw== Date: Fri, 9 May 2025 11:25:16 +0200 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20250509092516.GQ29660@pb2> References: <20250508215738.3582069-1-michael@niedermayer.cc> <20250508215738.3582069-4-michael@niedermayer.cc> MIME-Version: 1.0 In-Reply-To: X-GND-State: clean X-GND-Score: -85 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvledvvdehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlhcuvffnffculdduhedmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfpihgvuggvrhhmrgihvghruceomhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtqeenucggtffrrghtthgvrhhnpeetgfegvdffieeuffevhfeitdfgfeejudekfeegteegveegjeegkedvveejleevkeenucffohhmrghinhepghhithhhuhgsrdgtohhmnecukfhppeeguddrieeirdeijedruddufeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeguddrieeirdeijedruddufedphhgvlhhopehlohgtrghlhhhoshhtpdhmrghilhhfrhhomhepmhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtpdhnsggprhgtphhtthhopedupdhrtghpthhtohepfhhfmhhpvghgqdguvghvvghlsehffhhmphgvghdrohhrgh X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [PATCH 4/7] avformat/iff: Check nb_channels == 0 in MHDR 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="===============7091542179338957428==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============7091542179338957428== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="v+Mbu5iuT/5Blw/K" Content-Disposition: inline --v+Mbu5iuT/5Blw/K Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 09, 2025 at 07:07:19PM +1000, Peter Ross wrote: > On Thu, May 08, 2025 at 11:57:35PM +0200, Michael Niedermayer wrote: > > Fixes: division by 0 > > Fixes: 395163171/clusterfuzz-testcase-minimized-ffmpeg_dem_IFF_fuzzer-5= 42604339373670 > >=20 > > Found-by: continuous fuzzing process https://github.com/google/oss-fuzz= /tree/master/projects/ffmpeg > > Signed-off-by: Michael Niedermayer > > --- > > libavformat/iff.c | 2 ++ > > 1 file changed, 2 insertions(+) > >=20 > > diff --git a/libavformat/iff.c b/libavformat/iff.c > > index 7142a06e98f..9402be48c98 100644 > > --- a/libavformat/iff.c > > +++ b/libavformat/iff.c > > @@ -510,6 +510,8 @@ static int iff_read_header(AVFormatContext *s) > > sta->codecpar->ch_layout =3D (AVChannelLayout)AV_CHANN= EL_LAYOUT_MONO; > > else if (sta->codecpar->ch_layout.nb_channels =3D=3D 2) > > sta->codecpar->ch_layout =3D (AVChannelLayout)AV_CHANN= EL_LAYOUT_STEREO; > > + else if (sta->codecpar->ch_layout.nb_channels =3D=3D 0) > > + return AVERROR_INVALIDDATA; > > break; > > =20 > > case ID_ABIT: >=20 > please apply will apply thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB I am the wisest man alive, for I know one thing, and that is that I know nothing. -- Socrates --v+Mbu5iuT/5Blw/K Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCaB3J/AAKCRBhHseHBAsP q7I5AJ953a+MZ/znxM3+m6nOPLs+1CUnZACggH+eBw25RoKCWWB4KpcNDYGl2Qo= =qmT1 -----END PGP SIGNATURE----- --v+Mbu5iuT/5Blw/K-- --===============7091542179338957428== 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". --===============7091542179338957428==--