Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix overflow in mask to prefix conversion #47

Merged
merged 1 commit into from Jan 8, 2023
Merged

Fix overflow in mask to prefix conversion #47

merged 1 commit into from Jan 8, 2023

Conversation

stormshield-guillaumed
Copy link
Contributor

The mask to prefix conversion I introduced was panicking when the prefix was 32 for IPv4 or 128 for IPv6. I fixed it and added tests.

@krisprice krisprice merged commit 5074e3e into krisprice:master Jan 8, 2023
krisprice pushed a commit that referenced this pull request Jan 8, 2023
@krisprice
Copy link
Owner

Thanks @stormshield-guillaumed merged and published :)

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.

None yet

2 participants