Skip to content

Fix negative worker index from hashHost overflow on long hostnames - #16

Merged
fr4nsyz merged 1 commit into
mainfrom
fix/worker-index-overflow
Nov 26, 2026
Merged

fr4nsyz merged 1 commit into
mainfrom
fix/worker-index-overflow

Conversation

@fr4nsyz

@fr4nsyz fr4nsyz commented Nov 26, 2026

Copy link
Copy Markdown
Owner

hashHost could overflow int and go negative, so long hostnames indexed bp.workers out of range and panicked. Replaced with FNV-1a mod n.

@fr4nsyz
fr4nsyz merged commit cc356d7 into main Nov 26, 2026
1 check passed
@fr4nsyz
fr4nsyz deleted the fix/worker-index-overflow branch November 26, 2026 15:53
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