Skip to content

fix: avoid infinite loop in randsector #95

Merged
lkdvos merged 2 commits into
mainfrom
bd/randsector
Jun 17, 2026
Merged

fix: avoid infinite loop in randsector #95
lkdvos merged 2 commits into
mainfrom
bd/randsector

Conversation

@borisdevos

Copy link
Copy Markdown
Member

No description provided.

@codecov

codecov Bot commented Jun 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lkdvos

lkdvos commented Jun 17, 2026

Copy link
Copy Markdown
Member

Good catch! I think you have to guard the length call by a IteratorSize === HasLength, but otherwise good for me!

@lkdvos lkdvos changed the title Avoid getting stuck in while loop avoid infinite loop in randsector Jun 17, 2026
@lkdvos lkdvos changed the title avoid infinite loop in randsector fix: avoid infinite loop in randsector Jun 17, 2026
@lkdvos lkdvos merged commit dad3a02 into main Jun 17, 2026
12 checks passed
@lkdvos lkdvos deleted the bd/randsector branch June 17, 2026 13:45
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.

2 participants