[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#27185: GNUMakefile mode shows lines that will be executed in comment
積丹尼 Dan Jacobson
bug#27185: GNUMakefile mode shows lines that will be executed in comment color
Tue, 11 Aug 2020 06:43:17 +0800
>>>>> "SK" == Stefan Kangas <email@example.com> writes:
>> $ cat Makefile
>> 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."