[Top][All Lists]

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

Re: C file recoginzed as image file

From: Chris Moore
Subject: Re: C file recoginzed as image file
Date: Mon, 08 Jan 2007 22:14:40 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux)

David Kastrup <address@hidden> writes:

Compare your version:

>     If we did it that way and someone sent me a virus in image format
>     disguised as Emacs Lisp code, the virus would be installed, when I
>     would expect it to merely be displayed safely in Emacs Lisp mode.

with, for example, the following which I had previously written in
this thread:

| I don't want this situation to be possible in Emacs:
| I receive a file foo.c in an email, save it to disk and open it in
| Emacs, knowing that the .c type is opened in cc-mode which is safe.
| To my horror, the file actually contains an evil .jpg file which
| causes a buffer overflow in the jpg library; when it's displayed it
| infects my machine with a virus.

That is pointing out how the choice to display disguised images as
images can lead to bad results.

reply via email to

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