Bug 16411 - gif magic
Summary: gif magic
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: freedesktop.org.xml (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Jonathan Blandford
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-18 08:07 UTC by Matthias Clasen
Modified: 2008-06-19 02:10 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Matthias Clasen 2008-06-18 08:07:31 UTC
gdk-pixbuf uses a one byte longer magic for gif than shared-mime-info. 
Not sure it makes any difference, but here goes:

        static GdkPixbufModulePattern signature[] = {
                { "GIF8", NULL, 100 },
                { NULL, NULL, 0 }
Comment 1 Bastien Nocera 2008-06-19 02:10:03 UTC
It's supposed to start with "GIF" followed by the type of GIF, so 87a, or 89a (IIRC). So GIF8 would match both, but wouldn't match a newer version of the format (unlikely as it is).

* freedesktop.org.xml.in: Better magic for GIF files,
from gdk-pixbuf, spotted by Matthias Clasen <mclasen@redhat.com>
(Closes: #16411)


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.