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

Tilman Hausherr commented on PDFBOX-6321:
-----------------------------------------

Re bug 7, "The evicted page buffer is reused while a cursor may still hold it", 
I asked Claude to write a test (  
[^RandomAccessReadBufferedFileEvictionTest.java] ) and it found nothing. The 
"problematic" part of method is not accessed in tests.

Prompt:
In the PDFBox repository look at the RandomAccessReadBufferedFile class. The 
removeEldestEntry method is considered suspicious because it is alleged that an 
evicted page's buffer is refilled with different data. Create a test scenario 
that reproduces the problem.
https://claude.ai/share/c5eed685-20bd-4f6f-abf0-f9d4893f302e

> Work through bug list from GO port
> ----------------------------------
>
>                 Key: PDFBOX-6321
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-6321
>             Project: PDFBox
>          Issue Type: Task
>            Reporter: Tilman Hausherr
>            Priority: Major
>         Attachments: RandomAccessReadBufferedFileEvictionTest.java
>
>
> Evaluate the bugs found in 
> https://github.com/shinguakira/pdfbox-go/pull/19
> PR discovered while researching usage of a buggy method on PDFBOX-6313



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