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.bugs Subject: bug#44128: [feature/native-comp] Date: Thu, 15 Apr 2021 16:52:01 +0300 Message-ID: <83r1jby7su.fsf@gnu.org> References: <87eelri6l8.fsf@bernoul.li> <574a5ce8-59da-6329-3f94-49a94496f7a9@orcon.net.nz> <834kg8yr7u.fsf@gnu.org> <710dd7f3-c058-646d-be97-61aaccc076c0@orcon.net.nz> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18372"; mail-complaints-to="usenet@ciao.gmane.io" Cc: akrl@sdf.org, jonas@bernoul.li, 44128@debbugs.gnu.org, eli@gnu.org To: Phil Sainty Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 15 16:01:37 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1lX2Yr-0004eM-L6 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Apr 2021 16:01:37 +0200 Original-Received: from localhost ([::1]:47942 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lX2Yq-00072j-JG for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Apr 2021 10:01:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51414) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lX2QZ-0008LB-WA for bug-gnu-emacs@gnu.org; Thu, 15 Apr 2021 09:53:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53623) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lX2QY-0006pe-HV for bug-gnu-emacs@gnu.org; Thu, 15 Apr 2021 09:53:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lX2QY-0001L8-FQ for bug-gnu-emacs@gnu.org; Thu, 15 Apr 2021 09:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Apr 2021 13:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs Original-Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.16184947425084 (code B ref 44128); Thu, 15 Apr 2021 13:53:02 +0000 Original-Received: (at 44128) by debbugs.gnu.org; 15 Apr 2021 13:52:22 +0000 Original-Received: from localhost ([127.0.0.1]:36933 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX2Pu-0001Jw-Fb for submit@debbugs.gnu.org; Thu, 15 Apr 2021 09:52:22 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38066) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX2Ps-0001Ji-32 for 44128@debbugs.gnu.org; Thu, 15 Apr 2021 09:52:21 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36223) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lX2Pk-0006Br-3j; Thu, 15 Apr 2021 09:52:12 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4214 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lX2Pg-0007MU-Bc; Thu, 15 Apr 2021 09:52:09 -0400 In-Reply-To: <710dd7f3-c058-646d-be97-61aaccc076c0@orcon.net.nz> (message from Phil Sainty on Fri, 16 Apr 2021 01:01:08 +1200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:204063 Archived-At: > From: Phil Sainty > Cc: akrl@sdf.org, jonas@bernoul.li, 44128@debbugs.gnu.org, eli@gnu.org > Date: Fri, 16 Apr 2021 01:01:08 +1200 > > I'll add that the following two results suggest that the code > which (this version of) Emacs tries to load or run might vary > depending on the files which happen to be in the CWD at the time. > > I think at best this may result in failures or inconsistencies > as I've encountered, and at worst it's probably exploitable. > > Surely the start-up process shouldn't be looking in the CWD > for anything? I'm not sure I see how you reach that conclusion. Isn't /home/phil/emacs/native-comp/usr/local/bin/ on your PATH? If not, how come the Emacs executable in that directory gets invoked? Or maybe you have "." in your PATH?