Tilman Hausherr created PDFBOX-6371:
---------------------------------------

             Summary: 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: 3.0.8 PDFBox, 2.0.37
            Reporter: Tilman Hausherr
            Assignee: Tilman Hausherr
             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