You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Dmitry Konstantinov (Jira)" <ji...@apache.org> on 2025/08/16 14:53:00 UTC
[jira] [Updated] (CASSANDRA-20842) Fix version range check in MessagingService.getVersionOrdinal
[ 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-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org