RockteMQ-AI commented on issue #2187: URL: https://github.com/apache/rocketmq-dashboard/issues/2187#issuecomment-5292615002
**Issue Evaluation** Category: `type/bug` | Status: **Confirmed** The integer overflow in the pagination offset calculation is a valid bug. When `(page - 1) * pageSize` exceeds `Integer.MAX_VALUE`, the result wraps to a negative value, causing `IndexOutOfBoundsException` in `subList`. **Root Cause:** Unchecked integer multiplication in offset calculation without overflow guard. **Impact:** Any cloud-backed topic-consumer listing endpoint with large page numbers returns HTTP 500. **Severity:** medium Suggested fix: Use `long` arithmetic for the offset calculation, or clamp the result before passing to `subList`. An automated fix proposal can be generated. Reply `/approve` to proceed with PR generation. --- *Automated evaluation by RockteMQ-AI* -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
