From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris Moore Newsgroups: gmane.emacs.devel Subject: Re: C file recoginzed as image file Date: Mon, 08 Jan 2007 22:14:40 +0100 Message-ID: References: <85irfhidmw.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1168290933 28196 80.91.229.12 (8 Jan 2007 21:15:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 Jan 2007 21:15:33 +0000 (UTC) Cc: lekktu@gmail.com, c.a.rendle@gmail.com, rms@gnu.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 08 22:15:28 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H41q1-00035x-9M for ged-emacs-devel@m.gmane.org; Mon, 08 Jan 2007 22:15:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H41q0-0000q9-Kx for ged-emacs-devel@m.gmane.org; Mon, 08 Jan 2007 16:15:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H41pU-0000cr-0E for emacs-devel@gnu.org; Mon, 08 Jan 2007 16:14:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H41pR-0000bg-DL for emacs-devel@gnu.org; Mon, 08 Jan 2007 16:14:50 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H41pR-0000bP-5u for emacs-devel@gnu.org; Mon, 08 Jan 2007 16:14:49 -0500 Original-Received: from [66.249.92.175] (helo=ug-out-1314.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H41pQ-0007T7-Nv for emacs-devel@gnu.org; Mon, 08 Jan 2007 16:14:48 -0500 Original-Received: by ug-out-1314.google.com with SMTP id j3so7095048ugf for ; Mon, 08 Jan 2007 13:14:47 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:to:cc:references:from:date:in-reply-to:message-id:user-agent:mime-version:content-type:x-sa-exim-connect-ip:x-sa-exim-mail-from:x-spam-checker-version:x-spam-level:x-spam-status:subject:x-sa-exim-version:x-sa-exim-scanned:sender; b=WBbJv6N+LGRfbfRsGMMaHQtPUd66PVGdnocNLhq1OnVZefVF7KY4kpb98boMgtVpgmxkm1qXicBxKpxZBAbiMxc5tNOWllSkuElaAEb9rXSpe+p3v09PwyUPyFecILVTt17ABXbAcuP3I1YiIgzRhhCajMaWWU3yWrOF3mGHRSA= Original-Received: by 10.66.243.2 with SMTP id q2mr35363530ugh.1168290886913; Mon, 08 Jan 2007 13:14:46 -0800 (PST) Original-Received: from chrislap.local ( [89.176.28.156]) by mx.google.com with ESMTP id q40sm40078760ugc.2007.01.08.13.14.45; Mon, 08 Jan 2007 13:14:46 -0800 (PST) Original-Received: from localhost ([127.0.0.1] helo=chrislap.local) by chrislap.local with esmtp (Exim 4.63) (envelope-from ) id 1H41pI-0002GB-SV; Mon, 08 Jan 2007 22:14:43 +0100 Original-To: David Kastrup In-Reply-To: <85irfhidmw.fsf@lola.goethe.zz> (David Kastrup's message of "Mon\, 08 Jan 2007 19\:20\:39 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux) X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: dooglus@gmail.com X-SA-Exim-Version: 4.2.1 (built Sun, 03 Dec 2006 00:39:09 +0000) X-SA-Exim-Scanned: Yes (on chrislap.local) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:65012 Archived-At: David Kastrup 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.