Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-2330

Prevent preventable OOM in CompressorInputStream

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.15
    • Component/s: None
    • Labels:
      None

      Description

      On TIKA-1631, users noted that merely detecting an x-compress file could cause an OOM because we were instantiating the stream as part of detection.
      On COMPRESS-382, Luis Filipe Nassif noted that something similar happens with LZMA.

      Let's work with the Compress project to:
      1) add a static detect that doesn't instantiate the streams (COMPRESS-385)
      2) allow a parameterizable limit on the amount of allocated space for x-compress (COMPRESS-386) and LZMA (COMPRESS-382)

      Until we have a chance to make these changes in the compress project, let's temporarily copy/paste/update from Compress to fix these within Tika.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tallison@apache.org Tim Allison
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: