From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Phil Sainty Newsgroups: gmane.emacs.bugs Subject: bug#44128: [feature/native-comp] Date: Fri, 16 Apr 2021 01:01:08 +1200 Message-ID: <710dd7f3-c058-646d-be97-61aaccc076c0@orcon.net.nz> References: <87eelri6l8.fsf@bernoul.li> <574a5ce8-59da-6329-3f94-49a94496f7a9@orcon.net.nz> <834kg8yr7u.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21852"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 Cc: akrl@sdf.org, jonas@bernoul.li, 44128@debbugs.gnu.org, eli@gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 15 15:02:13 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 1lX1dM-0005aE-LY for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Apr 2021 15:02:12 +0200 Original-Received: from localhost ([::1]:59546 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lX1dL-00053Q-J6 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Apr 2021 09:02:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55344) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lX1dC-000526-Qr for bug-gnu-emacs@gnu.org; Thu, 15 Apr 2021 09:02:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53398) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lX1dC-0000Y8-J0 for bug-gnu-emacs@gnu.org; Thu, 15 Apr 2021 09:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lX1dC-0008Ka-Fq for bug-gnu-emacs@gnu.org; Thu, 15 Apr 2021 09:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Apr 2021 13:02: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.161849167431970 (code B ref 44128); Thu, 15 Apr 2021 13:02:02 +0000 Original-Received: (at 44128) by debbugs.gnu.org; 15 Apr 2021 13:01:14 +0000 Original-Received: from localhost ([127.0.0.1]:36711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX1cQ-0008JZ-2u for submit@debbugs.gnu.org; Thu, 15 Apr 2021 09:01:14 -0400 Original-Received: from smtp-1.orcon.net.nz ([60.234.4.34]:50153) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX1cN-0008JQ-W7 for 44128@debbugs.gnu.org; Thu, 15 Apr 2021 09:01:13 -0400 Original-Received: from [101.53.216.162] (port=59440 helo=[192.168.20.103]) by smtp-1.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1lX1cL-00012x-C5; Fri, 16 Apr 2021 01:01:09 +1200 In-Reply-To: Content-Language: en-GB X-GeoIP: NZ X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- 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:204059 Archived-At: 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? > it apparently gets confused by the 'emacs' directory in my HOME > > $ ls -lad emacs > drwxrwxr-x 25 phil phil 4096 Mar 28 23:30 emacs > > $ emacs --version > emacs: /home/phil/../native-lisp/28.0.50-abd7aa58/preloaded/window-0d1b8b93-581f9fcd.eln: cannot open shared object file: No such file or directory > > $ cd /home/phil/emacs/native-comp/usr/local/bin/ > > $ emacs --version > GNU Emacs 28.0.50 > Copyright (C) 2021 Free Software Foundation, Inc. > GNU Emacs comes with ABSOLUTELY NO WARRANTY. > You may redistribute copies of GNU Emacs > under the terms of the GNU General Public License. > For more information about these matters, see the file named COPYING.