Bug 6118

Summary: False positive for application/x-mp3 detection
Product: shared-mime-info Reporter: Jason He <jhe>
Component: freedesktop.org.xmlAssignee: Jonathan Blandford <jrb>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: mutibyte text file

Description Jason He 2006-03-04 11:11:19 UTC
The definition for application/x-mp3 is having a false possitive on multi-byte
plain text files (see attachment)

I think we should remove this uncommon pattern, which is the culprit of this FP:

  <match value="0xfff0" type="big16" offset="0" mask="0xfff0"/>


================================
  <mime-type type="audio/x-mp3">
    <comment>MP3 audio</comment>
    <magic priority="50">
      <match value="0xfffb" type="big32" offset="0"/>
      <match value="ID3" type="string" offset="0"/>
      <match value="0xfff0" type="big16" offset="0" mask="0xfff0"/>
    </magic>
    <glob pattern="*.mp3"/>
  </mime-type>
=================================
Comment 1 Jason He 2006-03-04 11:12:34 UTC
Created attachment 4813 [details]
mutibyte text file
Comment 2 Bastien Nocera 2006-07-09 03:49:20 UTC
Looks like it was already removed.

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.