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 7A33C43B97 for ; Fri, 19 Aug 2022 18:30:44 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 49F2868B93A; Fri, 19 Aug 2022 21:30:42 +0300 (EEST) Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 8B2BF68B631 for ; Fri, 19 Aug 2022 21:30:35 +0300 (EEST) Received: (Authenticated sender: michael@niedermayer.cc) by mail.gandi.net (Postfix) with ESMTPSA id 6194E240009 for ; Fri, 19 Aug 2022 18:30:34 +0000 (UTC) Date: Fri, 19 Aug 2022 20:30:33 +0200 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20220819183033.GH2088045@pb2> References: <20220817172145.GD2088045@pb2> MIME-Version: 1.0 In-Reply-To: Subject: Re: [FFmpeg-devel] API enhancements / broken promises 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="===============6495839963299147837==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============6495839963299147837== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="nkinyqrdwMuqz198" Content-Disposition: inline --nkinyqrdwMuqz198 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 18, 2022 at 07:19:07PM +0200, Jean-Baptiste Kempf wrote: > On Wed, 17 Aug 2022, at 19:21, Michael Niedermayer wrote: > > a unwise choice. But if someone is against very basic xml or json parse= rs > > please speak up now and here because its still better to say "no" now t= han > > after nicolas did the work. >=20 > Absolutely against this idea. >=20 > Both JSON and XML are very very very difficult to parse in a secure manne= r. >=20 > Doing a simple XML parser and a simple JSON parser might be simple tasks = for any decent programmer, doing those parsers is extremely difficult becau= se there are a lot of complex corners cases, even if you take a subset of X= ML. Unicode, encoding, entities decoding, binary data, languages are not so= mething you can skip, even if you take a subset of XML. >=20 > Once you add document validation and DTD, namespaces, recursive XML or XP= ath/XQuery this makes it a project as big as the whole FFmpeg, and that's w= hy libxml2 is so big. > If you just want DASH and TTML (and maybe fontconfig), you still have to = do a large set of features. >=20 > And then you need to care about security. It's a difficult problem to fix= , and seeing the track record of the security of open source multimedia pro= jects, we should focus on our issues, not adding new ones. >=20 >=20 > If you believe that you can do a better job than thousands of people paid= large amounts of money who spent decades on this problem, then, please do = a separate project, host it on git.ffmpeg.org, git.videolan.org or github, = and give us a fast streaming API. Please be sure that you validate most tes= t-suites and cornercases too. And fuzz it. >=20 > Managing to do that would be an impact probably much bigger than FFmpeg, = so don't hesitate. And then FFmpeg will be able to use it, and other projec= ts too. >=20 > But for me, until this is ready and battle-tested, it's a hard no.. ok but just to clarify what i meant / was thinking of was a simple key / value style parser no features beyond that. just enough so we can use it to read our own generated xml from some object serialization. thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB The real ebay dictionary, page 1 "Used only once" - "Some unspecified defect prevented a second use" "In good condition" - "Can be repaird by experienced expert" "As is" - "You wouldnt want it even if you were payed for it, if you knew .= =2E." --nkinyqrdwMuqz198 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEIAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCYv/WxAAKCRBhHseHBAsP q3qgAJ4yfvoyiqY5F01S556A0tZknic/SQCdFHn7UNux9iGKUuDhyzp3pEhRUSM= =o9ZK -----END PGP SIGNATURE----- --nkinyqrdwMuqz198-- --===============6495839963299147837== 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". --===============6495839963299147837==--