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 29D9F4A505 for ; Fri, 31 May 2024 00:27:48 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id B3E9268D495; Fri, 31 May 2024 03:27:45 +0300 (EEST) 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 AE3E668D371 for ; Fri, 31 May 2024 03:27:38 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 0620520003 for ; Fri, 31 May 2024 00:27:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1717115258; 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=Ck7iwJ0TD/LqFnuWAr5RhVv+ud5TG2DWJDvhR/G4LVo=; b=iA+SOvq8urfhasvNd5pyBxH82Sk6jWB1TrcMcrnK8khyBl+92SWTIOFfT1+bO80zQmwvBd TVHKoBwJJpw3NGq+99XIvIbNoFQXMZJKDPutH8tMOV1z5SMXB589f8LjTSvIn3o5fk46h2 HoC+J8Lld4dnmQxeKu1Ardo4a5cTqtfbjfCL7Yu5QhSZF7VlJ08xL6WNzw1jx7s/k/emmp xlpqNCSuYNScHHLYG+dND76w2P6WeE/TxiIV9vXeTlv9fcWVnNytk5rwiDL+1oJXaN3bc3 X1opPi93nw9LlAiZyB4sBm2cXFg21osss3L0BrevvLwRXdizDJ+94wCpN4HG2g== Date: Fri, 31 May 2024 02:27:37 +0200 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20240531002737.GJ2821752@pb2> References: <27e5f614496e729f68326a31c3ac70d5923cfa97.camel@haerdin.se> <653b59c05d14ef9a5574331a0ecd4004a0266b50.camel@haerdin.se> MIME-Version: 1.0 In-Reply-To: <653b59c05d14ef9a5574331a0ecd4004a0266b50.camel@haerdin.se> X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [PATCH 3/5] lavu/common.h: Fix UB in av_clip_uintp2_c() 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="===============5453106906684076849==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============5453106906684076849== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="HEgoE9Ku6Eog9oq6" Content-Disposition: inline --HEgoE9Ku6Eog9oq6 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 30, 2024 at 12:14:09AM +0200, Tomas H=E4rdin wrote: >=20 > common.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > 1fdb9cd4a83522921c2b15a1e76ff2f65ef61f57 0003-lavu-common.h-Fix-UB-in-av= _clip_uintp2_c.patch > From f81730f8facc54ef23df79ac8d33075403b4f76f Mon Sep 17 00:00:00 2001 > From: =3D?UTF-8?q?Tomas=3D20H=3DC3=3DA4rdin?=3D > Date: Thu, 16 May 2024 16:37:58 +0200 > Subject: [PATCH 3/5] lavu/common.h: Fix UB in av_clip_uintp2_c() >=20 > Found by value analysis > --- > libavutil/common.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/libavutil/common.h b/libavutil/common.h > index 715f0a594c..8a3c4d2fcf 100644 > --- a/libavutil/common.h > +++ b/libavutil/common.h > @@ -278,8 +278,8 @@ static av_always_inline av_const int av_clip_intp2_c(= int a, int p) > */ > static av_always_inline av_const unsigned av_clip_uintp2_c(int a, int p) > { > - if (a & ~((1<> 31 & ((1< - else return a; > + if (a & ~((1U<> 31 & ((1U< + else return a; > } LGTM thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB In fact, the RIAA has been known to suggest that students drop out of college or go to community college in order to be able to afford settlements. -- The RIAA --HEgoE9Ku6Eog9oq6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCZlkZeQAKCRBhHseHBAsP q/KhAJsGpMdBgfe0rr20GL5ME8SMFsRmvwCfX4/EXzf4c7WRRKDMV2LvRRY2Ouw= =xegh -----END PGP SIGNATURE----- --HEgoE9Ku6Eog9oq6-- --===============5453106906684076849== 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". --===============5453106906684076849==--