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 8714F4A4DB for ; Tue, 30 Apr 2024 22:58:00 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id B68B168D634; Wed, 1 May 2024 01:57:57 +0300 (EEST) Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 503F868D5E3 for ; Wed, 1 May 2024 01:57:51 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 8F81C1C0006 for ; Tue, 30 Apr 2024 22:57:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1714517870; 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=ouu5t2q7v2mhRXuCqa9yNMLvo5Vs20KmTz2jkoVneig=; b=XGhFQlZxUrgPg7U4d7tHsU674BsSq/ZUXLD88yp2lIcvk2s5MAx+z0NanCxKbjZKsMcFS3 8Q8HahDG9mSXRQpkMut2S5FbCUxp7TMPDe/M8BPkj7xMfyUL5zhzqqVoQ9y04YH8lB+vJJ VD4cgw2mlqUutVxvaLPAqhEPFCTQTNX4J5/1a69VyY78WZzcORkiBtnvGcv/SrKLxdMWtl hNWpg4Mr84uvblCAW+c1Mh5zcwtFG7a6utgVabnf4IaeoiSeZpd7XAhR949l+fMGBxrIz3 r9ywDe72SfL/V/hJE6CcdkkZtdQYADXomeEUdxAFPlFLJ11dIhLp7gnH8ZfBzQ== Date: Wed, 1 May 2024 00:57:49 +0200 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20240430225749.GW6420@pb2> References: <20240427185145.1458898-1-michael@niedermayer.cc> <95b8ff6f-0ea7-4bd0-b331-9a30a55f7954@gmail.com> MIME-Version: 1.0 In-Reply-To: <95b8ff6f-0ea7-4bd0-b331-9a30a55f7954@gmail.com> X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [PATCH] avformat/iamfdec: check nb_streams in header read 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="===============8560088709990381659==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============8560088709990381659== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="h7PAn0NqKDAZSkms" Content-Disposition: inline --h7PAn0NqKDAZSkms Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 27, 2024 at 08:58:22PM -0300, James Almer wrote: > On 4/27/2024 3:51 PM, Michael Niedermayer wrote: > > Fixes: Assertion pkt->stream_index < (unsigned)s->nb_streams && "Invali= d stream index.\n" failed at libavformat/demux.c:572 > > Fixes: 67890/clusterfuzz-testcase-minimized-ffmpeg_dem_IAMF_fuzzer-5166= 340789829632.fuzz > >=20 > > Found-by: continuous fuzzing process https://github.com/google/oss-fuzz= /tree/master/projects/ffmpeg > > Signed-off-by: Michael Niedermayer > > --- > > libavformat/iamfdec.c | 3 +++ > > 1 file changed, 3 insertions(+) > >=20 > > diff --git a/libavformat/iamfdec.c b/libavformat/iamfdec.c > > index e34d13e74c5..ce6d4aa0647 100644 > > --- a/libavformat/iamfdec.c > > +++ b/libavformat/iamfdec.c > > @@ -154,6 +154,9 @@ static int iamf_read_header(AVFormatContext *s) > > } > > } > > + if (!s->nb_streams) > > + return AVERROR_INVALIDDATA; > > + > > return 0; > > } >=20 > Should be ok. will apply thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB "Nothing to hide" only works if the folks in power share the values of you and everyone you know entirely and always will -- Tom Scott --h7PAn0NqKDAZSkms Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCZjF3bQAKCRBhHseHBAsP q8gkAKCb9s2LfTpwZ//Bmr24GNN1T+D1DQCfYMgtVDX7hJK52yNsCYx9lCoF3NQ= =Bpml -----END PGP SIGNATURE----- --h7PAn0NqKDAZSkms-- --===============8560088709990381659== 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". --===============8560088709990381659==--