bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#27185: GNUMakefile mode shows lines that will be executed in comment


From: 積丹尼 Dan Jacobson
Subject: 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@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."





reply via email to

[Prev in Thread] Current Thread [Next in Thread]