Skip to content

fix(mock): avoid overflow in inclusive integer ranges - #8495

Merged
wy471x merged 1 commit into
masterfrom
fix/mock-integer-range-overflow-20261115
Nov 16, 2026
Merged

wy471x merged 1 commit into
masterfrom
fix/mock-integer-range-overflow-20261115

Conversation

@yuluo-yx

Copy link
Copy Markdown
Member

Problem and change

Fix integer overflow in mock ranges such as ${int|0-2147483647}, which returned an error placeholder instead of a number. Preserve inclusive bounds and reject reversed ranges.

IssueSpec

IssueSpec-Mode: lightweight
IssueSpec-Reason: Restore the existing inclusive integer range contract.
IssueSpec-Validation: ./mvnw -pl shenyu-plugin/shenyu-plugin-mock -am clean verify -Dmaven.javadoc.skip=true passed, including all 84 mock tests, Checkstyle and RAT. Added-code quality not run locally because the tool download failed. Full-repository build and Docker E2E not run.

Make sure that:

  • You have read the contribution guidelines.
  • You submit test cases (unit or integration tests) that back your changes.
  • New production code follows the code quality rules Q1-Q9 in AGENTS.md (no magic numbers, focused methods, reuse of existing utilities).
  • Your local test passed ./mvnw clean install -Dmaven.javadoc.skip=true.

@wy471x
wy471x merged commit e6aae30 into master Nov 16, 2026
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants