Debian Bug report logs - #283760
/usr/bin/file: jpeg: junk after comment

version graph

Package: file; Maintainer for file is Christoph Biedl <debian.axhn@manchmal.in-ulm.de>; Source for file is src:file (PTS, buildd, popcon).

Reported by: Dan Jacobson <jidanni@jidanni.org>

Date: Wed, 1 Dec 2004 05:48:01 UTC

Severity: minor

Found in versions file/4.24-4, 5.03-5ubuntu1

Fixed in version file/5.08-1

Done: Daniel Baumann <daniel.baumann@progress-technologies.net>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Michael Piefel <piefel@debian.org>:
Bug#283760; Package file. (full text, mbox, link).


Acknowledgement sent to Dan Jacobson <jidanni@jidanni.org>:
New Bug report received and forwarded. Copy sent to Michael Piefel <piefel@debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Dan Jacobson <jidanni@jidanni.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: /usr/bin/file: jpeg: junk after comment
Date: Wed, 01 Dec 2004 09:43:28 +0800
Package: file
Version: 4.10-3
Severity: minor
File: /usr/bin/file

What's the extra \377\333 doing at the end of:
$ wget http://jidanni.org/location/images/20041003dongmao.jpg
$ file 20041003dongmao.jpg
20041003dongmao.jpg: JPEG image data, JFIF standard 1.01, comment:
"Created with The GIMP\377\333"


xli says that there are only 21 chars:
$ xli -verbose 20041003dongmao.jpg
Comment, length 21:
Created with The GIMP
20041003dongmao.jpg is a 523x118 JPEG image, color space Grayscale, 1
comps., Huffman coding
  Compressing colormap...145 unique colors
  Building XImage...done



Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#283760; Package file. (full text, mbox, link).


Acknowledgement sent to Michael Piefel <piefel@debian.org>:
Extra info received and forwarded to list. (full text, mbox, link).


Message #10 received at 283760@bugs.debian.org (full text, mbox, reply):

From: Michael Piefel <piefel@debian.org>
To: Dan Jacobson <jidanni@jidanni.org>, 283760@bugs.debian.org, Debian BTS <control@bugs.debian.org>
Subject: Re: Bug#283760: /usr/bin/file: jpeg: junk after comment
Date: Wed, 01 Dec 2004 11:45:02 +0100
tags 283760 +wontfix
thanks

Am Mittwoch, den 01.12.2004, 09:43 +0800 schrieb Dan Jacobson:
> 20041003dongmao.jpg: JPEG image data, JFIF standard 1.01, comment:
> "Created with The GIMP\377\333"

These bytes are there, and the length in the JPG even says 0x17 = 23.
Anyway, file doesn't really understand the contents of any file and in
this case reads the comment up the next NULL byte, which unfortunately
includes the two bogus bytes. There’s not much that can be done about
that, I’m afraid, short of removing the comment display altogether.

Bye,
   Mike
-- 
|=| Michael Piefel
|=| Member of the Debian project



Tags added: wontfix Request was from Michael Piefel <piefel@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Bug reassigned from package `file' to `gimp'. Request was from Dan Jacobson <jidanni@jidanni.org> to control@bugs.debian.org. (full text, mbox, link).


Message sent on to Dan Jacobson <jidanni@jidanni.org>:
Bug#283760. (full text, mbox, link).


Message #17 received at 283760-submitter@bugs.debian.org (full text, mbox, reply):

From: Ari Pollak <ari@debian.org>
To: 283760-submitter@bugs.debian.org
Subject: Re: Processed: Re: Bug#283760: /usr/bin/file: jpeg: junk after comment
Date: Sat, 04 Dec 2004 12:10:47 -0500
>>#I see. It must be all gimp's fault perhaps.

This is the part at which you explain:
a) how you got file to show you the comment, since I can't even get it 
to do that much if I save a fresh image from The GIMP
b) how this is a gimp bug when ImageMagick, jhead, and xli all display 
the comment correctly. Even if you use ImageMagick to add a comment to a 
JPEG with -comment, the comment will be in the exact same format as if 
GIMP wrote it - 0x17 is 2 more bytes specified than is actually 
contained in the comment, and the comment trailed by \377\333. file will 
still display extra character(s), at least an extra space.

Additionally, the following comment is located in libmagic1's magic file:

Note that these tests are not fool-proof since some perfectly valid 
JPEGs are currently impossible to specify in magic(4) format.



Bug reassigned from package `gimp' to `file'. Request was from Dan Jacobson <jidanni@jidanni.org> to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Daniel Baumann <daniel@debian.org>:
Bug#283760; Package file. (full text, mbox, link).


Acknowledgement sent to jidanni@jidanni.org:
Extra info received and forwarded to list. Copy sent to Daniel Baumann <daniel@debian.org>. (full text, mbox, link).


Message #24 received at 283760@bugs.debian.org (full text, mbox, reply):

From: jidanni@jidanni.org
To: 283760@bugs.debian.org
Cc: control@bugs.debian.org
Subject: JPEG comment has \377 appended
Date: Tue, 15 Jul 2008 09:44:54 +0800
found 283760 4.24-4
thanks
With http://commons.wikimedia.org/wiki/Image:Nails_in_love_1.jpg
(http://upload.wikimedia.org/wikipedia/commons/5/51/Nails_in_love_1.jpg)
now there is only the \377 appended, not two characters.
Of course all other programs, e.g., identify(1), have no characters
appended at all.




Bug marked as found in version 4.24-4. Request was from jidanni@jidanni.org to control@bugs.debian.org. (Tue, 15 Jul 2008 01:48:03 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Daniel Baumann <daniel@lists.debian-maintainers.org>:
Bug#283760; Package file. (Tue, 04 Jan 2011 18:57:03 GMT) (full text, mbox, link).


Acknowledgement sent to Reuben Thomas <rrt@sc3d.org>:
Extra info received and forwarded to list. Copy sent to Daniel Baumann <daniel@lists.debian-maintainers.org>. (Tue, 04 Jan 2011 18:57:03 GMT) (full text, mbox, link).


Message #31 received at 283760@bugs.debian.org (full text, mbox, reply):

From: Reuben Thomas <rrt@sc3d.org>
To: Debian Bug Tracking System <283760@bugs.debian.org>
Subject: file: Fixed in CVS
Date: Tue, 04 Jan 2011 18:55:42 +0000
Package: file
Version: 5.03-5ubuntu1
Severity: normal

This bug is fixed in file CVS, and will hence be in file 5.05.

-- System Information:
Debian Release: squeeze/sid
  APT prefers maverick-updates
  APT policy: (500, 'maverick-updates'), (500, 'maverick-security'), (500, 'maverick-backports'), (500, 'maverick')
Architecture: i386 (i686)

Kernel: Linux 2.6.35-24-generic (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages file depends on:
ii  libc6            2.12.1-0ubuntu10        Embedded GNU C Library: Shared lib
ii  libmagic1        5.03-5ubuntu1           File type determination library us
ii  zlib1g           1:1.2.3.4.dfsg-3ubuntu1 compression library - runtime

file recommends no packages.

file suggests no packages.

-- no debconf information




Marked as fixed in versions 5.05. Request was from Daniel Baumann <daniel.baumann@progress-technologies.net> to control@bugs.debian.org. (Wed, 13 Mar 2013 12:06:08 GMT) (full text, mbox, link).


Marked Bug as done Request was from Daniel Baumann <daniel.baumann@progress-technologies.net> to control@bugs.debian.org. (Wed, 13 Mar 2013 12:06:08 GMT) (full text, mbox, link).


Notification sent to Dan Jacobson <jidanni@jidanni.org>:
Bug acknowledged by developer. (Wed, 13 Mar 2013 12:06:08 GMT) (full text, mbox, link).


No longer marked as fixed in versions 5.05. Request was from Andreas Beckmann <anbe@debian.org> to control@bugs.debian.org. (Fri, 01 Nov 2013 01:21:23 GMT) (full text, mbox, link).


Marked as fixed in versions file/5.08-1. Request was from Andreas Beckmann <anbe@debian.org> to control@bugs.debian.org. (Fri, 01 Nov 2013 01:21:24 GMT) (full text, mbox, link).


Removed tag(s) wontfix. Request was from Andreas Beckmann <anbe@debian.org> to control@bugs.debian.org. (Fri, 01 Nov 2013 01:21:24 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 29 Nov 2013 07:40:01 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Mon Nov 6 20:54:45 2017; Machine Name: beach

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.