Skip to content

Conversation

@rich7420
Copy link
Contributor

Which issue does this PR close?

Closes #6782

Rationale for this change

What changes are included in this PR?

This PR added validation to ensure each range is within its corresponding merged range and test test_fetch_partition_point_validation to verify the fix.

Are there any user-facing changes?

None

@rich7420 rich7420 requested a review from Xuanwo as a code owner November 17, 2025 05:24
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. releases-note/fix The PR fixes a bug or has a title that begins with "fix" labels Nov 17, 2025
Comment on lines +633 to +634
let merged_ranges = vec![100..200];
let range = 50..60;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merged_ranges are generated from ranges, so it shouldn't be possible to have 50..60 in 100..200.

@rich7420 rich7420 closed this Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

releases-note/fix The PR fixes a bug or has a title that begins with "fix" size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Integer underflow risk in reader fetch partition_point

2 participants