-
Notifications
You must be signed in to change notification settings - Fork 18k
net: ipv6 address parsing allows extra 0 #57760
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
Comments
Change https://go.dev/cl/461605 mentions this issue: |
according to rfc 4291 section 2.2 |
Tnx, yeah, I forgot to link rf^^ |
Is there some standard that says more zeros are a valid representation? |
Don't think so since other languages are limiting to 4 characters: |
What version of Go are you using (
go version
)?go1.19.5 linux/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
When parsing ipv6 address that contains group with more than 4 zeroes, it says it's valid like:
0:0:0:0:000000:ffff:127.1.2.3
What did you expect to see?
I expected nil result.
What did you see instead?
Parsed IP address
The text was updated successfully, but these errors were encountered: