From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Unicode confusables and reordering characters considered harmful Date: Wed, 03 Nov 2021 15:33:44 +0200 Message-ID: <83cznhicsn.fsf@gnu.org> References: <875ytag0hb.fsf@yahoo.com> <87zgqmd5np.fsf@mat.ucm.es> <83wnlqk3rn.fsf@gnu.org> <72dd5c2a-42c7-b12e-05ed-e93adbd89727@gmail.com> <83ilxajyhw.fsf@gnu.org> <83fssejxf8.fsf@gnu.org> <835ytajsv2.fsf@gnu.org> <11d5fecb44af1d388b7f@heytings.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2723"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gregory@heytings.org, stefan@marxist.se, cpitclaudel@gmail.com, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 03 14:36:20 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1miGR7-0000PQ-9Z for ged-emacs-devel@m.gmane-mx.org; Wed, 03 Nov 2021 14:36:17 +0100 Original-Received: from localhost ([::1]:59798 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1miGR5-0001AY-Ik for ged-emacs-devel@m.gmane-mx.org; Wed, 03 Nov 2021 09:36:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36632) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1miGOg-0005Lv-NL for emacs-devel@gnu.org; Wed, 03 Nov 2021 09:33:46 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51134) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1miGOg-00030l-Cj; Wed, 03 Nov 2021 09:33:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=qH1uhKgq5fBKKLd/CMwPbGG0BITE5K/5LkDzjzLB1vs=; b=nOe1DO8DdBHF uHRtCbgWZCLbSkkcbFmbISWNgSTO8NkZYJeYq+M8Dmw6KJgyqCVHFtqeTqgkim2ZpoSHl0VCEwauS GsxjPoe7m+CctdUbpz4ecc+Nf9z9zyHgFLTok9VdNA0n7AgIXcMmnwwhZkqiPfzkifnPe4eYXRCvQ gPcbRkgKDI2uuwWLn5sntyrL7QRDNbgXIzQ+O/204UdUtAT8QDX9U/UVGEnucCpA0rX/PLufl/UiW 2tjOsoGmu6G5Oq5um1cMozC+TJQxUR052uMdj/KZYCNhOV95l6MBta2qIxgcqCx2LiuKK012VQAx+ t7s9axTKlhGduqLqzNQcog==; Original-Received: from [87.69.77.57] (port=4700 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1miGOf-0008WD-TB; Wed, 03 Nov 2021 09:33:46 -0400 In-Reply-To: (message from Stefan Monnier on Tue, 02 Nov 2021 21:07:05 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:278575 Archived-At: > From: Stefan Monnier > Cc: Eli Zaretskii , Stefan Kangas , > cpitclaudel@gmail.com, emacs-devel@gnu.org > Date: Tue, 02 Nov 2021 21:07:05 -0400 > > > Given that the vulnerability is limited to source code, in which AFAIU > > there's no legitimate use of such characters, would the following not > > be enough? > > I'm pretty sure there are legitimate uses of such characters in source code. > Maybe there are significant parts of the world where this is extremely rare, > but we shouldn't generalize too quickly. Agreed. Especially since some thought was already invested in this, and we have some of those ideas implemented since Emacs 25.1.