GNU bug report logs - #27185
GNUMakefile mode shows lines that will be executed in comment color

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Thu, 1 Jun 2017 13:48:02 UTC

Severity: minor

Found in version 28.0.50

Full log


Message #13 received at 27185 <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 27185 <at> debbugs.gnu.org
Subject: Re: bug#27185: GNUMakefile mode shows lines that will be executed in
 comment color
Date: Tue, 11 Aug 2020 06:43:17 +0800
>>>>> "SK" == Stefan Kangas <stefan <at> marxist.se> writes:
>> $ cat Makefile
>> mmm:
>> echo 111 #;\
>> echo 222
>> $ emacs Makefile #shows the second line in comment color,
>> but when one does M-x compile, we see the second line is indeed executed.

SK> I can reproduce this on current master. That said, is this really a
SK> common use-case?

That way hackers can hide code in the "comments" that will actually get
executed by unsuspecting programmers.

Imagine a malicious code hidden in a copyright notice section,
sent to staff to "just test this."




This bug report was last modified 4 years and 310 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.