You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2015/09/22 23:08:04 UTC

[jira] [Comment Edited] (PDFBOX-2986) Potential resource leak in TTFParser's use of RAFDataStream

    [ https://issues.apache.org/jira/browse/PDFBOX-2986?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14903408#comment-14903408 ] 

Tilman Hausherr edited comment on PDFBOX-2986 at 9/22/15 9:07 PM:
------------------------------------------------------------------

I messed up somehow in 2.0, probably in this issue, many fonts are rendered differently. I'm investigating.


was (Author: tilman):
I messed up somehow, probably in this issue, many fonts are rendered differently. I'm investigating.

> 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, 1.8.11, 2.0.0
>            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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org