This is an automated email from the ASF dual-hosted git repository.

nick pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tika.git


The following commit(s) were added to refs/heads/master by this push:
     new 0d259bc  TIKA-3023 Make the SGI Movie mime magic more specific to 
avoid false positives on text files starting with MOVI
0d259bc is described below

commit 0d259bc8b6beccaa9bac2e85212b57a48f171e83
Author: Nick Burch <[email protected]>
AuthorDate: Thu Feb 6 11:42:30 2020 +0000

    TIKA-3023 Make the SGI Movie mime magic more specific to avoid false 
positives on text files starting with MOVI
---
 .../src/main/resources/org/apache/tika/mime/tika-mimetypes.xml      | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 
a/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml 
b/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
index 174dad0..3211cfb 100644
--- a/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
+++ b/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
@@ -7438,7 +7438,11 @@
 
   <mime-type type="video/x-sgi-movie">
     <magic priority="50">
-      <match value="MOVI" type="string" offset="0"/>
+      <match value="MOVI\x00" type="string" offset="0"/>
+      <match value="MOVI\x01" type="string" offset="0"/>
+      <match value="MOVI\x02" type="string" offset="0"/>
+      <match value="MOVI\xfe" type="string" offset="0"/>
+      <match value="MOVI\xff" type="string" offset="0"/>
     </magic>
     <glob pattern="*.movie"/>
   </mime-type>

Reply via email to