[
https://issues.apache.org/jira/browse/PDFBOX-6349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18153867#comment-18153867
]
ASF subversion and git services commented on PDFBOX-6349:
---------------------------------------------------------
Commit 1941065 from Tilman Hausherr in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1941065 ]
PDFBOX-6349: don't truncate in equals, as suggested by copilot
> COSInteger 0 equals to 0x100000000
> ----------------------------------
>
> Key: PDFBOX-6349
> URL: https://issues.apache.org/jira/browse/PDFBOX-6349
> Project: PDFBox
> Issue Type: Bug
> 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
>
>
> {{COSInteger.equals}} compares {{intValue()}}, which is (int) value, so it
> drops everything above bit 31: Java says {{COSInteger.get(0)}} and
> {{COSInteger.get(4294967296)}} are equal.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]