alexey-pelykh commented on code in PR #1993:
URL: https://github.com/apache/tika/pull/1993#discussion_r1803598853


##########
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-code-module/src/main/java/org/apache/tika/parser/executable/UniversalExecutableParser.java:
##########
@@ -48,6 +49,9 @@ public class UniversalExecutableParser implements Parser {
     private static final Set<MediaType> SUPPORTED_TYPES =
             Collections.singleton(MediaType.application("x-mach-o-universal"));
 
+    private static final int MAX_ARCHS_COUNT = 1000;

Review Comment:
   There are only 18 known ones and they can't repeat, so I would even say that 
19  (to match the "magic detection") would've been another number we could use.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@tika.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to