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

Potential resource leak in TTFParser's use of RAFDataStream

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.8.10, 1.8.11, 2.0.0
    • 1.8.11, 2.0.0
    • FontBox
    • 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

              tilman Tilman Hausherr
              tallison Tim Allison
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: