Tim Allison created PDFBOX-2986:
-----------------------------------

             Summary: Potential resource leak in TTFParser's use of 
RAFDataStream 
                 Key: PDFBOX-2986
                 URL: https://issues.apache.org/jira/browse/PDFBOX-2986
             Project: PDFBox
          Issue Type: Bug
          Components: FontBox
    Affects Versions: 1.8.10
            Reporter: Tim Allison
            Priority: Minor


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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to