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

David Capwell commented on CASSANDRA-16147:
-------------------------------------------

I modified split to trigger this logic

{code}
l[i++] = ByteBufferAccessor.instance.sliceWithShortLength(bb, bb.position());
bb.position(bb.position() + 2 + l[i - 1].remaining());
{code}

the test causes the size to be -2 and since the offset is 2 for the header, the 
returned buffer is 0


> ValueAccessor is using signed shorts in sliceWithShortLength
> ------------------------------------------------------------
>
>                 Key: CASSANDRA-16147
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16147
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Local/Other
>            Reporter: Blake Eggleston
>            Assignee: Blake Eggleston
>            Priority: Normal
>             Fix For: 4.0-beta
>
>
> ValueAccessor is using a signed short when interpreting byte lengths, causing 
> exceptions when reading blobs over 32767 bytes in length



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to