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 5BB964B633 for ; Wed, 10 Jul 2024 16:09:48 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 15FAD68DB5F; Wed, 10 Jul 2024 19:09:46 +0300 (EEST) Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DAAD468DB48 for ; Wed, 10 Jul 2024 19:09:38 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 19B081BF205 for ; Wed, 10 Jul 2024 16:09:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1720627778; 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=fV5VK0B6LvMNHvY1cikL1oJO7ZWG/N45bGYoV+BlKq4=; b=lZo5kiXLwVBHEeFHJ7uCqjuLN6zJv9x/oulvxqpKTm3AHU08ISZNfp32prWZaswQUifw4/ MMN5peCiP76LpVVe9Qmu2cJe0PgavX+EJV0IxkIlOprviB6Gp9Xi8TnhWQnIzEI8U01SDH t4Tlyf3cvZgClQFpLnUA2NYGl0RAYXeoQ2bMMASus27SIbJew7qAqHG9JY4nhT7ASZiAgG nFyIoXaUGUj1Yp69zfAxRepJerHFCZbYnNgJn+j5m2lQlMUlGkRLrUpzGzRHj2FGK8oTtS gUUTG1Fi5ZvUe8v24yXd4TML5F76xZ5CNxX+i5Xdy0MPUShdiMJnH71hPI6qdg== Date: Wed, 10 Jul 2024 18:09:36 +0200 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20240710160936.GI4991@pb2> References: <20240709183434.10114-1-gseanmcg@gmail.com> <20240709214132.12016-1-gseanmcg@gmail.com> MIME-Version: 1.0 In-Reply-To: <20240709214132.12016-1-gseanmcg@gmail.com> X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [PATCHv4] swscale: prevent undefined behaviour in the PUTRGBA macro 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="===============5340468734536765102==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============5340468734536765102== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="R7RSAOS08SfIpCMC" Content-Disposition: inline --R7RSAOS08SfIpCMC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 09, 2024 at 05:41:32PM -0400, Sean McGovern wrote: > For even small values of 'asrc[x]', shifting them by 24 bits or more > will cause arithmetic overflow and be caught by > GCC's undefined behaviour sanitizer. >=20 > Ensure the values do not overflow by up-casting the bracketed > expressions involving 'asrc' to uint32_t. > --- > libswscale/yuv2rgb.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) will apply thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB You can kill me, but you cannot change the truth. --R7RSAOS08SfIpCMC Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCZo6yNgAKCRBhHseHBAsP q6lLAJ4wxXEpTCB5mK0v9m+KsLMDzL9KNwCeJg2z8nf20ZfS1T8fbpGHEqgudW8= =EMtA -----END PGP SIGNATURE----- --R7RSAOS08SfIpCMC-- --===============5340468734536765102== 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". --===============5340468734536765102==--