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: Wed, 10 Jan 2007 00:37:52 +0100 Message-ID: References: <45A39F63.2010608@ig.com.br> 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 1168385898 11738 80.91.229.12 (9 Jan 2007 23:38:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 Jan 2007 23:38:18 +0000 (UTC) Cc: Stephen Leake , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 10 00:38:16 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 1H4QXf-0004Nh-Ut for ged-emacs-devel@m.gmane.org; Wed, 10 Jan 2007 00:38:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H4QXf-00035p-Fk for ged-emacs-devel@m.gmane.org; Tue, 09 Jan 2007 18:38:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H4QXV-00035S-Ep for emacs-devel@gnu.org; Tue, 09 Jan 2007 18:37:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H4QXR-00034X-UW for emacs-devel@gnu.org; Tue, 09 Jan 2007 18:37:57 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H4QXR-00034U-OS for emacs-devel@gnu.org; Tue, 09 Jan 2007 18:37:53 -0500 Original-Received: from [64.233.182.190] (helo=nf-out-0910.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H4QXR-0008Qr-Ae for emacs-devel@gnu.org; Tue, 09 Jan 2007 18:37:53 -0500 Original-Received: by nf-out-0910.google.com with SMTP id h2so291267nfe for ; Tue, 09 Jan 2007 15:37:52 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=P5HOIvBC9xK3572nrLQu+HbzF5RzaJtUhNKjNjw6sARWnV6eg8BjU3mDP87OC/+RIFxG0mZ1WFCodo3viei1zup6biP0a5sQnra0ZTX3hrMxZOOhXviwutVnzG6VbCnQxdEOovrIPbMKpatovwFhuroeWwH66f9I3tLkAj39vGQ= Original-Received: by 10.82.138.6 with SMTP id l6mr47867bud.1168385872515; Tue, 09 Jan 2007 15:37:52 -0800 (PST) Original-Received: by 10.82.146.7 with HTTP; Tue, 9 Jan 2007 15:37:52 -0800 (PST) Original-To: "Vinicius Jose Latorre" In-Reply-To: <45A39F63.2010608@ig.com.br> 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:65092 Archived-At: On 1/9/07, Vinicius Jose Latorre wrote: > Could a valid image file (GIF, JPG, PNG, etc.) with a valid file > extension contain a virus? If image type A can contain viruses, and a contaminated image of type A is opened in Emacs from a file with extension for image type B, Emacs would fall for the virus, because it would detect the correct type (A) and use the A libraries to handle it. The extension is only used to decide whether the file is an image or not, not what kind of image. /L/e/k/t/u