From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id D9F074C067 for ; Mon, 28 Jul 2025 22:34:28 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 0642268CAEF; Tue, 29 Jul 2025 01:34:25 +0300 (EEST) Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 4A39868BABF for ; Tue, 29 Jul 2025 01:34:18 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id A852542D7F for ; Mon, 28 Jul 2025 22:34:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1753742057; 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=jXOvyWl+fGYnb50Fq4WKIi0GeqP7jy/cE4LClyAEIeQ=; b=iPlF88tyerGiVHy4q3OhBEuTZKfb5nZpYE/MslAZgGGmspmp81xJWt6KoNhhmGeRB3+fvp MnzVx3unzZNBan1lHoQ9+w26Z/NQw4GrL4mX6++le0LN1pMPZffW97v1aMeUvXaX6zj2Zc Kc6Q2XZKDgsQ27eBFax7ezju7pPNoY71OWXxJ8b/+UdLHg7gigDpUouAOvSxRPG6xDXPgd e5mQk6Rw3B+dF8DaK6m9o1k3uIxGwsUT3T8JMQkK11PVxm/uog3ikCm26yuTyYo049zno5 G1OoN3SQbKQOQuJaA4yieubk12KQ4Dt4v+VCe0J3wwM9tfjuNFUPPYlVmxzpag== Date: Tue, 29 Jul 2025 00:34:16 +0200 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20250728223416.GJ29660@pb2> References: <20250711194929.1293-1-kasper93@gmail.com> MIME-Version: 1.0 In-Reply-To: <20250711194929.1293-1-kasper93@gmail.com> X-GND-State: clean X-GND-Score: -90 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdelfeefkecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrhhlucfvnfffucdluddtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddtjeenucfhrhhomhepofhitghhrggvlhcupfhivgguvghrmhgrhigvrhcuoehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgeqnecuggftrfgrthhtvghrnhepffehvefhvddvhfdtgfethfdtueelfedtveekffeljeethfegtdfhfefggfeufedtnecuffhomhgrihhnpehffhhmphgvghdrohhrghenucfkphepgedurdeiiedrieehrddujeeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepgedurdeiiedrieehrddujeeipdhhvghloheplhhotggrlhhhohhsthdpmhgrihhlfhhrohhmpehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgdpnhgspghrtghpthhtohepuddprhgtphhtthhopehffhhmphgvghdquggvvhgvlhesfhhfmhhpvghgrdhorhhg X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [PATCH] avformat/subfile: clip seek offset 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="===============8143902866357445051==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============8143902866357445051== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="HjrkSh+IPsE4c5mR" Content-Disposition: inline --HjrkSh+IPsE4c5mR Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 11, 2025 at 09:49:29PM +0200, Kacper Michaj=C5=82ow wrote: > Fixes: signed integer overflow: 9223372036854737920 + 1649410 cannot be > represented in type 'int64_t' >=20 > Fixes OSS-Fuzz: 410100610 >=20 > Signed-off-by: Kacper Michaj=C5=82ow > --- > libavformat/subfile.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) >=20 > diff --git a/libavformat/subfile.c b/libavformat/subfile.c > index be48ef72ef..b8c6ce0eef 100644 > --- a/libavformat/subfile.c > +++ b/libavformat/subfile.c > @@ -128,13 +128,13 @@ static int64_t subfile_seek(URLContext *h, int64_t = pos, int whence) > case AVSEEK_SIZE: > return end - c->start; > case SEEK_SET: > - new_pos =3D c->start + pos; > + new_pos =3D c->start + av_clip(pos, 0, end - c->start); > break; > case SEEK_CUR: > - new_pos =3D c->pos + pos; > + new_pos =3D c->pos + av_clip(pos, -(c->pos - c->start), end - c-= >pos); > break; > case SEEK_END: > - new_pos =3D end + pos; > + new_pos =3D end + av_clip(pos, -(end - c->start), 0); > break; > default: > av_assert0(0); regression fix for this is here: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20055 [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB During times of universal deceit, telling the truth becomes a revolutionary act. -- George Orwell --HjrkSh+IPsE4c5mR Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCaIf63QAKCRBhHseHBAsP q3GnAKCBdKfFmWGbrF0dLZuKysUSHhYyawCgml1kT4yPTauJzETdrbfsE2HcXIg= =kOtq -----END PGP SIGNATURE----- --HjrkSh+IPsE4c5mR-- --===============8143902866357445051== 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". --===============8143902866357445051==--