diff options
author | Bastien Nocera <hadess@hadess.net> | 2018-06-04 13:25:30 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2018-06-04 13:25:30 +0200 |
commit | 7c7f84e2a77f4142cf77ebdf239deaa14c842f9c (patch) | |
tree | 0288f2fb39a8613b17cffe63d3ec079ef48820b9 | |
parent | 1e6b421a6c8c2dce3e430a4e2b963a9efd369aa2 (diff) | |
download | shared-mime-info-7c7f84e2a77f4142cf77ebdf239deaa14c842f9c.tar.gz |
Remove magic from STL binary
3-NUL bytes aren't enough to be sure that this will only ever match STL
binary headers.
https://bugs.freedesktop.org/show_bug.cgi?id=106330
-rw-r--r-- | freedesktop.org.xml.in | 7 | ||||
-rw-r--r-- | tests/list | 2 |
2 files changed, 1 insertions, 8 deletions
diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in index 331106f2..e6931a0d 100644 --- a/freedesktop.org.xml.in +++ b/freedesktop.org.xml.in @@ -7153,13 +7153,6 @@ command to generate the output files. <!-- 3D models and GCODEs --> <mime-type type="model/x.stl-binary"> <_comment>STL 3D model (binary)</_comment> - <magic priority="10"> - <match type="byte" value="0x0" mask="0xFFFF" offset="134"> - <match type="byte" value="0x0" mask="0xFFFF" offset="184"> - <match type="byte" value="0x0" mask="0xFFFF" offset="234"/> - </match> - </match> - </magic> <glob pattern="*.stl"/> </mime-type> @@ -676,7 +676,7 @@ dbus.service text/x-dbus-service dbus-comment.service text/x-dbus-service # 3D models and GCODEs -binary.stl model/x.stl-binary +binary.stl model/x.stl-binary oxo ascii.stl model/x.stl-ascii x binary.stl model/x.stl-ascii xxx ascii.stl model/x.stl-binary oxx |