[ 
https://issues.apache.org/jira/browse/OAK-2465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Antonio Sanso updated OAK-2465:
-------------------------------
    Attachment: OAK-2465-patch-3.txt

ooops thanks a lot [~anchela] for spotting,
To minor nitpicks to your patch (adding a new patch v3):

* In some edge cases  it can still overflow so I added 
{code}LongMath.checkedAdd {code}
* In order to keep the test case a bit tighter with the code I added some 
reflection for the private field check

> Long overflow in PermissionEntryProviderImpl
> --------------------------------------------
>
>                 Key: OAK-2465
>                 URL: https://issues.apache.org/jira/browse/OAK-2465
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core, mongomk
>            Reporter: Antonio Sanso
>            Assignee: angela
>             Fix For: 1.1.6
>
>         Attachments: OAK-2465-patch-3.txt, OAK-2465-patch.txt, 
> OAK-2465_2.patch
>
>
> PermissionEntryProviderImpl#init can end up in a Long overflow if the 
> underlying implementation does not know the exact value of the number 
> children, and the child node count is higher than maxSize.
> I will attach a patch with a test case



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to