summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2018-06-04 13:25:30 +0200
committerBastien Nocera <hadess@hadess.net>2018-06-04 13:25:30 +0200
commit7c7f84e2a77f4142cf77ebdf239deaa14c842f9c (patch)
tree0288f2fb39a8613b17cffe63d3ec079ef48820b9
parent1e6b421a6c8c2dce3e430a4e2b963a9efd369aa2 (diff)
downloadshared-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.in7
-rw-r--r--tests/list2
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>
diff --git a/tests/list b/tests/list
index 28fc59d9..375577d0 100644
--- a/tests/list
+++ b/tests/list
@@ -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