You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ni...@apache.org on 2020/05/18 04:20:19 UTC
[tika] branch master updated: TIKA-2961 Make the CAF mime magic
more specific to avoid false positives,
by checking for a version number after the "caff" header text
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 0bf11ae TIKA-2961 Make the CAF mime magic more specific to avoid false positives, by checking for a version number after the "caff" header text
0bf11ae is described below
commit 0bf11aec86079b8f1ae2f1ea680910ba79665c4f
Author: Nick Burch <ni...@gagravarr.org>
AuthorDate: Mon May 18 05:06:27 2020 +0100
TIKA-2961 Make the CAF mime magic more specific to avoid false positives, by checking for a version number after the "caff" header text
---
.../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 551e55e..7210066 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
@@ -5139,7 +5139,11 @@
<_comment>Core Audio Format</_comment>
<_comment>com.apple.coreaudio-format</_comment>
<magic priority="60">
- <match value="caff" type="string" offset="0" />
+ <match value="caff\000\000" type="string" offset="0" />
+ <match value="caff\000\001" type="string" offset="0" />
+ <match value="caff\000\002" type="string" offset="0" />
+ <match value="caff\100\000" type="string" offset="0" />
+ <match value="caff\200\000" type="string" offset="0" />
</magic>
<glob pattern="*.caf"/>
</mime-type>