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 BEF614C6BF for ; Fri, 9 May 2025 09:07:35 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A9C1A68C2F6; Fri, 9 May 2025 12:07:31 +0300 (EEST) Received: from mx.sdf.org (mx.sdf.org [205.166.94.24]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 37F4C68BD10 for ; Fri, 9 May 2025 12:07:29 +0300 (EEST) Received: from 28828826f30850df2d2bb146bd869914 ([1.145.199.160]) (authenticated (0 bits)) by mx.sdf.org (8.18.1/8.14.3) with ESMTPSA id 54997K5o017571 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO) for ; Fri, 9 May 2025 09:07:26 GMT Date: Fri, 9 May 2025 19:07:19 +1000 From: Peter Ross To: FFmpeg development discussions and patches Message-ID: Mail-Followup-To: FFmpeg development discussions and patches References: <20250508215738.3582069-1-michael@niedermayer.cc> <20250508215738.3582069-4-michael@niedermayer.cc> MIME-Version: 1.0 In-Reply-To: <20250508215738.3582069-4-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="===============7659335127332485188==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============7659335127332485188== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wwtQJRATdGFUPxCO" Content-Disposition: inline --wwtQJRATdGFUPxCO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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-542= 604339373670 >=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, 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_CHANNEL= _LAYOUT_MONO; > else if (sta->codecpar->ch_layout.nb_channels =3D=3D 2) > sta->codecpar->ch_layout =3D (AVChannelLayout)AV_CHANNEL= _LAYOUT_STEREO; > + else if (sta->codecpar->ch_layout.nb_channels =3D=3D 0) > + return AVERROR_INVALIDDATA; > break; > =20 > case ID_ABIT: please apply -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) --wwtQJRATdGFUPxCO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQSpB+AvpuUM0jTNINJnYHnFrEDdawUCaB3FxwAKCRBnYHnFrEDd a7IuAJ9mo1jvnR6WhY827bkBizc11uhOQACfZ1sgep++GGYOUuci/iCzYaIU2XM= =1faV -----END PGP SIGNATURE----- --wwtQJRATdGFUPxCO-- --===============7659335127332485188== 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". --===============7659335127332485188==--