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 718ED4D0A4 for ; Sun, 16 Feb 2025 14:42:32 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 34DAE68BA75; Sun, 16 Feb 2025 16:42:29 +0200 (EET) Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A50B368B37C for ; Sun, 16 Feb 2025 16:42:22 +0200 (EET) Received: by mail.gandi.net (Postfix) with ESMTPSA id E5B89432B8 for ; Sun, 16 Feb 2025 14:42:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1739716942; 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=EprV7gUEVOEvi/o+N2DzQXfRYFYBPLkFgLP20pI97JM=; b=hq87iv9MUywZ0rCioyx20GsRNPOc2hr7ujfrJvYpG/gIYWNBmSbUik7G8iAaVob3FFG/LZ Q6/eyOlJmuWPF2nI5AdNPmM7cOmES3OwRkUrJPns9QrTupSFInSkjrWUBfRK2Zq2TusGNR lYd0QPQbxupSI0TD4Bty90WYEFmy4nsCSPVe8XzR2hua3nfmD0Ckw0RAwdEk8K2tuPvkkO bbHo6Epi4LGjtqSZObCipWuYydvlWL9t4sNdkgyATy6g1O4NYmO9+odAEKDrrwc1SffVDp bnuOWhttgQiy9iBUPD1JneSsYs1Pi1MaIcWbOsZeSmF1Dru2ohyz1fccNo1Pjw== Date: Sun, 16 Feb 2025 15:42:20 +0100 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20250216144220.GF4991@pb2> References: <20250209022421.2346210-1-michael@niedermayer.cc> <20250209022421.2346210-6-michael@niedermayer.cc> MIME-Version: 1.0 In-Reply-To: X-GND-State: clean X-GND-Score: -85 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdehheejfecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrhhlucfvnfffucdludehmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcupfhivgguvghrmhgrhigvrhcuoehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgeqnecuggftrfgrthhtvghrnheptefggedvffeiueffvefhiedtgfefjedukeefgeetgeevgeejgeekvdevjeelveeknecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepgedurdeiiedrieejrdduudefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepgedurdeiiedrieejrdduudefpdhhvghloheplhhotggrlhhhohhsthdpmhgrihhlfhhrohhmpehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgdpnhgspghrtghpthhtohepuddprhgtphhtthhopehffhhmphgvghdquggvvhgvlhesfhhfmhhpvghgrdhorhhg X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [PATCH 6/6] avcodec/rv60dec: Initialize slice gb with actually allocated size 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="===============1841922510361698897==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============1841922510361698897== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="W7BLkXjVl8wue6NH" Content-Disposition: inline --W7BLkXjVl8wue6NH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Peter On Sun, Feb 09, 2025 at 06:17:39PM +1100, Peter Ross wrote: > On Sun, Feb 09, 2025 at 03:24:21AM +0100, Michael Niedermayer wrote: > > Fixes: out of array access > > Fixes: 385170375/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RV60= _fuzzer-4710055187906560 > >=20 > > Found-by: continuous fuzzing process https://github.com/google/oss-fuzz= /tree/master/projects/ffmpeg > > Signed-off-by: Michael Niedermayer > > --- > > libavcodec/rv60dec.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > >=20 > > diff --git a/libavcodec/rv60dec.c b/libavcodec/rv60dec.c > > index 0c2e03d7370..24981015a94 100644 > > --- a/libavcodec/rv60dec.c > > +++ b/libavcodec/rv60dec.c > > @@ -2257,7 +2257,7 @@ static int decode_slice(AVCodecContext *avctx, vo= id *tdata, int cu_y, int thread > > thread.avg_linesize[1] =3D 32; > > thread.avg_linesize[2] =3D 32; > > =20 > > - if ((ret =3D init_get_bits8(&gb, s->slice[cu_y].data, s->slice[cu_= y].size)) < 0) > > + if ((ret =3D init_get_bits8(&gb, s->slice[cu_y].data, s->slice[cu_= y].data_size)) < 0) > > return ret; > > =20 > > for (int cu_x =3D 0; cu_x < s->cu_width; cu_x++) { >=20 > nice find. please apply, thanks. will apply patzches 5 and 6 thanks [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB The difference between a dictatorship and a democracy is that every 4 years the population together is allowed to provide 1 bit of input to the governm= ent. --W7BLkXjVl8wue6NH Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCZ7H5TAAKCRBhHseHBAsP q9vEAJ4nP8fzssaH2F4sLQ/+cN6Uot+DywCeLTfpYLUpj/L+q4eGCzTVRSvII2Q= =QQqf -----END PGP SIGNATURE----- --W7BLkXjVl8wue6NH-- --===============1841922510361698897== 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". --===============1841922510361698897==--