From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.devel Subject: Re: C file recoginzed as image file Date: Tue, 9 Jan 2007 14:25:43 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1168349171 1133 80.91.229.12 (9 Jan 2007 13:26:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 Jan 2007 13:26:11 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 09 14:26:10 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 1H4GzJ-0001vO-1b for ged-emacs-devel@m.gmane.org; Tue, 09 Jan 2007 14:26:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H4GzI-0004cY-Kc for ged-emacs-devel@m.gmane.org; Tue, 09 Jan 2007 08:26:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H4Gz5-0004cE-HC for emacs-devel@gnu.org; Tue, 09 Jan 2007 08:25:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H4Gz3-0004bh-VB for emacs-devel@gnu.org; Tue, 09 Jan 2007 08:25:47 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H4Gz3-0004be-Rr for emacs-devel@gnu.org; Tue, 09 Jan 2007 08:25:45 -0500 Original-Received: from [66.249.92.169] (helo=ug-out-1314.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H4Gz3-0007cv-HA for emacs-devel@gnu.org; Tue, 09 Jan 2007 08:25:45 -0500 Original-Received: by ug-out-1314.google.com with SMTP id j3so7317159ugf for ; Tue, 09 Jan 2007 05:25:44 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ilADQF/LSC1TGsvkXqoCU/Bl8xzSYWgx7DWsKtaJwo17zPpFtLHXqhlvmyKamuW89sPCxIE1OXqjrk5A4IXAmnSd33jwUHpaO+OECEWaiX+0JFR1Z/cnlPP3Rt5Wx1iI/flwGtvJtKlo7Kpdtt6A4wCboEfTTKiLVhG57MVidA8= Original-Received: by 10.78.142.14 with SMTP id p14mr4460689hud.1168349143950; Tue, 09 Jan 2007 05:25:43 -0800 (PST) Original-Received: by 10.82.146.7 with HTTP; Tue, 9 Jan 2007 05:25:43 -0800 (PST) Original-To: "Stephen Leake" In-Reply-To: Content-Disposition: inline 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:65063 Archived-At: On 1/9/07, Stephen Leake wrote: > "if the file extension does not match the contents, it is more likely > that this is a virus attack" "More likely" than what? More likely than the alternative: that it is not a virus attack? I have mislabeled images in my hard disk: it's not unusual in my experience to find an image in format A, with an extension suggesting that it is in format B. So far, none of them have been virus attacks. Are you proposing also that we reject (or warn about) a .PNG file disguised as a .JPG, for example? We don't have a png-mode and a jpeg-mode; the auto-detection and image opening machinery just return image-mode. Should we redesign it to take that into account? /L/e/k/t/u