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 91CA64C76B for ; Fri, 9 May 2025 09:26:54 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6A61E68C477; Fri, 9 May 2025 12:26:51 +0300 (EEST) Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 430B868C466 for ; Fri, 9 May 2025 12:26:50 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 84F6E1FCE7 for ; Fri, 9 May 2025 09:26:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1746782809; 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=geYg1VaLmJ4HHN1xYUKO+QM0j1qeeaUesqknRdGWJFE=; b=lRR//xjd+6FON/TLrFy1ZsJVwn/YK4CJ5csL1BjRvskGpluk6LrPiso2ehfjFvfLCa1WBz KesKCLdxbtwkGhDD21S3bNubTMKM7miwQFe6yErSh3fdljaBdot2nuCFOjjPxWiYVggxaE 1qTm1IUAbZSu7V2DGFk1Jcd2ILo8j54nt2ns6J6IxqP+u5NQYj00O3J+fqkI9O38GljBcD 2cqLnv1Sj+BNGyRz8bLq/DgZEbOw03RO6S1WAQymfF3Y0HAXWWK1hY5cdTbRCbcsVDuRO+ 0G5px6OllI9LY8CJPyvUKfyGTGutDsJuYe+dK6oqZd2LD3Me7xZskozgYrB8bw== Date: Fri, 9 May 2025 11:26:48 +0200 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20250509092648.GT29660@pb2> References: <20250508215738.3582069-1-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 1/7] avcodec/mmvideo: fix paltte index 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="===============3209995978488786045==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============3209995978488786045== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="u+FGODhbLwgAeSOU" Content-Disposition: inline --u+FGODhbLwgAeSOU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 09, 2025 at 07:06:42PM +1000, Peter Ross wrote: > On Thu, May 08, 2025 at 11:57:32PM +0200, Michael Niedermayer wrote: > > Fixes: 391935573/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MMVI= DEO_fuzzer-4655048979709952 > > Fixes: out of array access > >=20 > > Found-by: continuous fuzzing process https://github.com/google/oss-fuzz= /tree/master/projects/ffmpeg > > Signed-off-by: Michael Niedermayer > > --- > > libavcodec/mmvideo.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > >=20 > > diff --git a/libavcodec/mmvideo.c b/libavcodec/mmvideo.c > > index 7313507debc..2a0c855992e 100644 > > --- a/libavcodec/mmvideo.c > > +++ b/libavcodec/mmvideo.c > > @@ -91,7 +91,7 @@ static void mm_decode_pal(MmContext *s) > > int start =3D bytestream2_get_le16(&s->gb); > > int count =3D bytestream2_get_le16(&s->gb); > > for (int i =3D 0; i < count; i++) > > - s->palette[start+i] =3D 0xFFU << 24 | (bytestream2_get_be24(&s= ->gb) << 2); > > + s->palette[(start+i)&0xFF] =3D 0xFFU << 24 | (bytestream2_get_= be24(&s->gb) << 2); > > } > > >=20 > please apply will apply thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB If you fake or manipulate statistics in a paper in physics you will never get a job again. If you fake or manipulate statistics in a paper in medicin you will get a job for life at the pharma industry. --u+FGODhbLwgAeSOU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCaB3KWAAKCRBhHseHBAsP qx7VAJ4lsmo2MGZf2FGdgivQ7ok/+Lh59wCglBkQLM61xYsKuEK5dL8YMjFM0qE= =2JA0 -----END PGP SIGNATURE----- --u+FGODhbLwgAeSOU-- --===============3209995978488786045== 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". --===============3209995978488786045==--