* bug#27185: GNUMakefile mode shows lines that will be executed in comment color
@ 2017-06-01 12:42 積丹尼 Dan Jacobson
2020-08-10 20:33 ` Stefan Kangas
0 siblings, 1 reply; 4+ messages in thread
From: 積丹尼 Dan Jacobson @ 2017-06-01 12:42 UTC (permalink / raw)
To: 27185
$ 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#27185: GNUMakefile mode shows lines that will be executed in comment color
2017-06-01 12:42 bug#27185: GNUMakefile mode shows lines that will be executed in comment color 積丹尼 Dan Jacobson
@ 2020-08-10 20:33 ` Stefan Kangas
2020-08-10 22:43 ` 積丹尼 Dan Jacobson
2020-08-10 22:46 ` 積丹尼 Dan Jacobson
0 siblings, 2 replies; 4+ messages in thread
From: Stefan Kangas @ 2020-08-10 20:33 UTC (permalink / raw)
To: 積丹尼 Dan Jacobson; +Cc: 27185
found 27185 28.0.50
thanks
積丹尼 Dan Jacobson <jidanni@jidanni.org> 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.
I can reproduce this on current master. That said, is this really a
common use-case?
Best regards,
Stefan Kangas
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#27185: GNUMakefile mode shows lines that will be executed in comment color
2020-08-10 20:33 ` Stefan Kangas
@ 2020-08-10 22:43 ` 積丹尼 Dan Jacobson
2020-08-10 22:46 ` 積丹尼 Dan Jacobson
1 sibling, 0 replies; 4+ messages in thread
From: 積丹尼 Dan Jacobson @ 2020-08-10 22:43 UTC (permalink / raw)
To: Stefan Kangas; +Cc: 27185
>>>>> "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."
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#27185: GNUMakefile mode shows lines that will be executed in comment color
2020-08-10 20:33 ` Stefan Kangas
2020-08-10 22:43 ` 積丹尼 Dan Jacobson
@ 2020-08-10 22:46 ` 積丹尼 Dan Jacobson
1 sibling, 0 replies; 4+ messages in thread
From: 積丹尼 Dan Jacobson @ 2020-08-10 22:46 UTC (permalink / raw)
To: Stefan Kangas; +Cc: 27185
That's how many security bugs work: non-common use cases.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-08-10 22:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-01 12:42 bug#27185: GNUMakefile mode shows lines that will be executed in comment color 積丹尼 Dan Jacobson
2020-08-10 20:33 ` Stefan Kangas
2020-08-10 22:43 ` 積丹尼 Dan Jacobson
2020-08-10 22:46 ` 積丹尼 Dan Jacobson
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).