Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
For Tika 1.15, we added temporary copy/pastes of updated CompressorInputStreamFactory and ArchiveInputStreamFactory.
There's now a static detect() method which should prevent OOMs while detecting some corrupt files.
There's also now a memoryLimitInKb parameter that limits the amount of memory that can be allocated. This is can be used to protect against OOM for corrupt files that might appear to allege enormous block sizes.
Many thanks to bodewig and the commons-compress community for their quick responses to PRs!