[infinispan-issues] [JBoss JIRA] (ISPN-7566) ByteString.readObject() throws NegativeArraySizeException when length > 127
Paul Ferraro (JIRA)
issues at jboss.org
Mon Feb 12 08:47:00 EST 2018
[ https://issues.jboss.org/browse/ISPN-7566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13531711#comment-13531711 ]
Paul Ferraro commented on ISPN-7566:
------------------------------------
Is the enforcement of a byte length really necessary? The hibernate 2nd level cache code can easily generate cache names with byte arrays larger than 127. Why not instead use https://github.com/infinispan/infinispan/blob/master/commons/src/main/java/org/infinispan/commons/io/UnsignedNumeric.java ?
> ByteString.readObject() throws NegativeArraySizeException when length > 127
> ---------------------------------------------------------------------------
>
> Key: ISPN-7566
> URL: https://issues.jboss.org/browse/ISPN-7566
> Project: Infinispan
> Issue Type: Bug
> Components: Core
> Affects Versions: 9.0.0.CR2
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Fix For: 9.0.0.CR3
>
>
> We don't expect or recommend cache names this big, but we should fail at the time the `ByteString` is created and not at the time it is read by a remote node.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the infinispan-issues
mailing list