We're updating the issue view to help you get more done. 

net.corda.core.internal.LazyStickyPool#toIndex can create a negative index

Description

In the very rare event if stickTo.hashCode() is MIN_VALUE, Math.abs() will return MIN_VALUE.

1 2 3 private fun toIndex(stickTo: Any): Int { return Math.abs(stickTo.hashCode()) % boxes.size }

Status

Assignee

Farzad Pezeshkpour

Reporter

Farzad Pezeshkpour

Priority

Medium

Labels

None

Severity

Medium

Fix versions

Ported to...

None

Feature Team

Select team

Affects versions

Corda 4
Corda Enterprise 4 RC05