Commit 7c7f84e2 authored by Bastien Nocera's avatar Bastien Nocera
Browse files

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
parent 1e6b421a
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment