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

ASF subversion and git services commented on PDFBOX-6371:
---------------------------------------------------------

Commit 1941257 from Tilman Hausherr in branch 'pdfbox/branches/3.0'
[ https://svn.apache.org/r1941257 ]

PDFBOX-6371: fix upper bound + add test, as suggested by copilot; make page 
size package local

> 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]

Reply via email to