Skip to content

fix(netmask): prefix length integer overflow#32

Open
terinjokes wants to merge 1 commit intomasterfrom
terin/netmask
Open

fix(netmask): prefix length integer overflow#32
terinjokes wants to merge 1 commit intomasterfrom
terin/netmask

Conversation

@terinjokes
Copy link
Copy Markdown
Contributor

The netmask UnmarshalText function parsed the IPv6 prefix length into a uint64 then converted to an int, which can be a smaller size (eg, on 32-bit platforms). As the prefix length can't exceed 128, instead parse as a uint8.

The netmask UnmarshalText function parsed the IPv6 prefix length into a
uint64 then converted to an int, which can be a smaller size (eg, on
32-bit platforms). As the prefix length can't exceed 128, instead parse
as a uint8.
@terinjokes terinjokes requested a review from a team April 24, 2026 19:50
@terinjokes terinjokes self-assigned this Apr 24, 2026
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