Skip to content

Fix incorrect byte check in NewRangeScannerFragment#611

Open
wata727 wants to merge 1 commit intohashicorp:mainfrom
wata727:fix_range_scanner_fragment
Open

Fix incorrect byte check in NewRangeScannerFragment#611
wata727 wants to merge 1 commit intohashicorp:mainfrom
wata727:fix_range_scanner_fragment

Conversation

@wata727
Copy link
Copy Markdown
Contributor

@wata727 wata727 commented May 14, 2023

The current RangeScanner.Scan() implementation does not expect a fragment, and passing anything other than the initial position will end the scan without consuming anything.

This PR adds a start position to RangeScanner to allow proper byte checking.

@wata727 wata727 force-pushed the fix_range_scanner_fragment branch from b92720b to d8cab2a Compare May 14, 2023 10:30
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.

1 participant