Bug 6118 - False positive for application/x-mp3 detection
Summary: False positive for application/x-mp3 detection
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: freedesktop.org.xml (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: Jonathan Blandford
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-04 11:11 UTC by Jason He
Modified: 2006-07-09 03:49 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
mutibyte text file (1.14 KB, application/octet-stream)
2006-03-04 11:12 UTC, Jason He
Details

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.