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

Dmitry Konstantinov updated CASSANDRA-20842:
--------------------------------------------
     Bug Category: Parent values: Correctness(12982)Level 1 values: API / 
Semantic Implementation(12988)
       Complexity: Low Hanging Fruit
    Discovered By: Code Inspection
    Fix Version/s: 5.x
         Severity: Low
           Status: Open  (was: Triage Needed)

> Fix version range check in MessagingService.getVersionOrdinal
> -------------------------------------------------------------
>
>                 Key: CASSANDRA-20842
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-20842
>             Project: Apache Cassandra
>          Issue Type: Bug
>          Components: Messaging/Internode
>            Reporter: Dmitry Konstantinov
>            Assignee: Dmitry Konstantinov
>            Priority: Normal
>             Fix For: 5.x
>
>
> Incorrect bounds check condition
> if (result < 0 || result > maxVersion)
> The check should be against the array length, not `maxVersion`



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to