You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by GitBox <gi...@apache.org> on 2026/10/09 09:22:59 UTC

[GH] (rocketmq/fix/split-metadata-pagination-guards): Workflow run "CodeQL Analysis" failed!

The GitHub Actions job "CodeQL Analysis" on rocketmq.git/fix/split-metadata-pagination-guards has failed.
Run started by GitHub user zjncs (triggered by zjncs).

Head commit for run:
f336eb3f6e5bc07ac92f4a3789f1382805f44480 / zjncs <18...@163.com>
[ISSUE #B2] Guard split-metadata pagination against zero/negative limits, negative seq and malformed data versions

subGroupTable / subTopicConfigTable index the sorted key list with
client-supplied groupSeq/topicSeq and maxGroupNum/maxTopicNum. A zero or
negative max limit makes endIndex collapse onto or below beginIndex, so
keyList.get(endIndex - 1) throws ArrayIndexOutOfBoundsException (or the
subMap call throws for an inverted range); a negative seq indexes the key
list negatively; and a dataVersion that is not valid JSON throws
fastjson's JSONException instead of degrading to a full sync page.

Clamp the seq to zero, skip the slice for non-positive limits (an empty
page), and treat an unparseable data version as an unknown version that
falls back to a full page from index 0.

Signed-off-by: zjncs <18...@163.com>

Report URL: https://github.com/apache/rocketmq/actions/runs/34333843473

With regards,
GitHub Actions via GitBox