Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-2986

Potential resource leak in TTFParser's use of RAFDataStream

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.10, 1.8.11, 2.0.0
    • Fix Version/s: 1.8.11, 2.0.0
    • Component/s: FontBox
    • Labels:
      None

      Description

      TTFParser offers a method that parses a file. It looks like the RandomAccessFile is never closed if there is an exception – I initially discovered this via running Tika batch on Common Crawl data, and code review confirms this. There should probably be a try/finally->close RAFDataStream in the parse#File method.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tilman Tilman Hausherr
                Reporter:
                tallison@apache.org Tim Allison
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: