[
https://issues.apache.org/jira/browse/CASSANDRA-8792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14324790#comment-14324790
]
Jonathan Ellis commented on CASSANDRA-8792:
-------------------------------------------
My preference would be to assert that callers are using Memory the way we
expect, rather than make sure we can handle cases that "shouldn't happen."
Let's go with that if it works for you.
> Improve Memory assertions
> -------------------------
>
> Key: CASSANDRA-8792
> URL: https://issues.apache.org/jira/browse/CASSANDRA-8792
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Reporter: Benedict
> Assignee: Benedict
> Priority: Trivial
> Fix For: 2.1.4
>
>
> Null pointers are valid returns if a size of zero is returned. We assume a
> null pointer implies resource mismanagement in a few places. We also don't
> properly check the bounds of all of our accesses; this patch attempts to tidy
> up both of these things.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)