Bug 16411

Summary: gif magic
Product: shared-mime-info Reporter: Matthias Clasen <mclasen>
Component: freedesktop.org.xmlAssignee: Jonathan Blandford <jrb>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

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.