[
https://issues.apache.org/jira/browse/PDFBOX-6371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tilman Hausherr resolved PDFBOX-6371.
-------------------------------------
Resolution: Fixed
> ScratchFile.markPagesAsFree() leaks
> -----------------------------------
>
> Key: PDFBOX-6371
> URL: https://issues.apache.org/jira/browse/PDFBOX-6371
> Project: PDFBox
> Issue Type: Sub-task
> Components: IO
> Affects Versions: 2.0.37, 3.0.8 PDFBox
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Priority: Major
> Fix For: 2.0.38, 3.0.9 PDFBox, 4.0.0
>
>
> ScratchFile.markPagesAsFree walks to count rather than off + count
> The loop starts at off and stops at count, so it visits count - off entries
> rather than count. Every clear() leaks one page.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]