[Top][All Lists]

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

Re: C file recoginzed as image file

From: Vinicius Jose Latorre
Subject: Re: C file recoginzed as image file
Date: Tue, 09 Jan 2007 11:57:55 -0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20061211 SeaMonkey/1.0.7

Juanma Barranquero wrote:
On 1/9/07, Stephen Leake <address@hidden> 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?

What about the heuristic:

"if the file extension is not an image file extension and the contents is not an image, it is more likely that this is a virus attack"


Could a valid image file (GIF, JPG, PNG, etc.) with a valid file extension contain a virus?

reply via email to

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