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 B58914E5F4 for ; Thu, 10 Jul 2025 23:37:07 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 9EF2768FD53; Fri, 11 Jul 2025 02:37:02 +0300 (EEST) Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 426D668FD40 for ; Fri, 11 Jul 2025 02:36:56 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id A5B7B41DE2 for ; Thu, 10 Jul 2025 23:36:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1752190615; 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=D1o3L2MytFxz1NXVDMgTg8aK8RFO0AHTOh+tzyp64Ys=; b=MXGAfroWSvfsMj0teEI7VOMDWG7LURTpyFzUpIAPjHkAMd8W9j5dS/Q/T/R52Ptn0Cw/Rv ZpjOQ5ot/teqkNrwUYo2cnAFyjUCNXRGPJ3kGu3lduHNSAn/j12HqjRB/plf948y1MQQlJ a7l1ZGWSQyPMyIveZUF4vusufJ8D2fH0Sc/qqGL8GyCLM6uFiMvpOCRw1bw4CFMIjPPINv sVmIBuHvJttUZUiCoOE2RX+eKYeL12K9eL7hDRuDNwaakZmwcmRI4+SiqJeS/eMfUt6IKP j8bHgMDrZPej309zBh09KwkQl1znLgkyxIwHgnJPL2VP1wH3j+2mmgT5UIiPUQ== Date: Fri, 11 Jul 2025 01:36:54 +0200 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20250710233654.GS29660@pb2> References: <20250707103102.3477457-1-michael@niedermayer.cc> <20250707103102.3477457-2-michael@niedermayer.cc> <20250707145833.GG29660@pb2> <20250707200731.GH29660@pb2> MIME-Version: 1.0 In-Reply-To: X-GND-State: clean X-GND-Score: -70 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdegudejkecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrhhlucfvnfffucdlfedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcupfhivgguvghrmhgrhigvrhcuoehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgeqnecuggftrfgrthhtvghrnhepieegkedtjeduffejhfetgeejtdegteetgfegtdfhjefgvefhteegkeejtddvhfevnecukfhppeeguddrieeirdeihedrudejieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeguddrieeirdeihedrudejiedphhgvlhhopehlohgtrghlhhhoshhtpdhmrghilhhfrhhomhepmhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtpdhnsggprhgtphhtthhopedupdhrtghpthhtohepfhhfmhhpvghgqdguvghvvghlsehffhhmphgvghdrohhrgh X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [PATCH 2/2] avformat/concatdec: Check recursion depth 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="===============7232365920068309956==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============7232365920068309956== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="DmtFanom5sXSH3Ge" Content-Disposition: inline --DmtFanom5sXSH3Ge Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Nicolas On Wed, Jul 09, 2025 at 02:04:03PM +0200, Nicolas George wrote: > Michael Niedermayer (HE12025-07-07): > > a file called self_ref.ffconcat, containing: > >=20 > > ffconcat version 1.0 > > file self_ref.ffconcat >=20 > Oh, that. Thanks for explaining. I am not sure it is our responsibility > to protect from this, there are many instance of similar pitfalls, for > example a shell wrapper for a command with the same name that neglects > to not call itself. But if it takes very little code like that, why > not... >=20 > OTOH, three problem I have with the code: >=20 > ELOOP is not portable, and the message does not match the issue. It is > better to have an error message that says nothing ("invalid value") than > an error message that says something wrong ("symbolic links"? what > symbolic links?). ok, chanegd it to AVERROR_INVALIDDATA >=20 > Why do you have to implement it in concat? AFAICS, the call to > ff_copy_whiteblacklists() should be enough to trigger the protection you > added in patch 1/2. Yes but this also affects releases, and adding a field to AVFormatContext is an issue for releases as it changes ABI So the concat patch would go into old release branches and the AVFormatContext one into master Unless someone has a better idea ... >=20 > You are abusing the ff_copy_whiteblacklists() function. Since it is > private, it can be renamed. ff_prepare_nested_muxer()? demuxer but yes, we can rename it thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Whats the most studid thing your enemy could do ? Blow himself up Whats the most studid thing you could do ? Give up your rights and freedom because your enemy blew himself up. --DmtFanom5sXSH3Ge Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCaHBOkwAKCRBhHseHBAsP q4k4AJ9hf7oh1ra0Pk+prNUCz55NlCkEzwCcCOyzHkgee/e1oY0ftsH6FLNVrcc= =/UHW -----END PGP SIGNATURE----- --DmtFanom5sXSH3Ge-- --===============7232365920068309956== 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". --===============7232365920068309956==--