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 A6BE44461A for ; Sat, 19 Nov 2022 21:41:21 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 850D468B460; Sat, 19 Nov 2022 23:41:19 +0200 (EET) Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9CD4E68B26F for ; Sat, 19 Nov 2022 23:41:13 +0200 (EET) Received: (Authenticated sender: michael@niedermayer.cc) by mail.gandi.net (Postfix) with ESMTPSA id B4A7020004 for ; Sat, 19 Nov 2022 21:41:12 +0000 (UTC) Date: Sat, 19 Nov 2022 22:41:11 +0100 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20221119214111.GC710311@pb2> References: <20221115221657.23290-1-michael@niedermayer.cc> <20221115221657.23290-2-michael@niedermayer.cc> MIME-Version: 1.0 In-Reply-To: <20221115221657.23290-2-michael@niedermayer.cc> Subject: Re: [FFmpeg-devel] [PATCH 2/2] swscale/input: Use more unsigned intermediates 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="===============9192206767318892965==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============9192206767318892965== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="p2kqVDKq5asng8Dg" Content-Disposition: inline --p2kqVDKq5asng8Dg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 15, 2022 at 11:16:57PM +0100, Michael Niedermayer wrote: > Same principle as previous commit, with sufficiently huge rgb2yuv table > values this produces wrong results and undefined behavior. > The unsigned produces the same incorrect results. That is probably > ok as these cases with huge values seem not to occur in any real > use case. >=20 > There are more cases but someone is refactoring them, so i didnt yet chan= ge > them. >=20 > Fixes: signed integer overflow > Signed-off-by: Michael Niedermayer > --- > libswscale/input.c | 24 ++++++++++++------------ > 1 file changed, 12 insertions(+), 12 deletions(-) will apply patch set [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Awnsering whenever a program halts or runs forever is On a turing machine, in general impossible (turings halting problem). On any real computer, always possible as a real computer has a finite number of states N, and will either halt in less than N cycles or never halt. --p2kqVDKq5asng8Dg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEIAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCY3lNcQAKCRBhHseHBAsP q7obAJ9i585LN0uW6YFjSMApQkc4YhKnDACeN68We8XXfvuWyAzJ4sB7DQHfcno= =AP2s -----END PGP SIGNATURE----- --p2kqVDKq5asng8Dg-- --===============9192206767318892965== 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". --===============9192206767318892965==--