-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
std.net: Fix IPv6 address format compression for long zero runs #22441
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
std.net: Fix IPv6 address format compression for long zero runs #22441
Conversation
7c2b944 to
70542a0
Compare
579b709 to
591e41b
Compare
|
The obvious issue with your implementation is that it doesn't work on big-endian hosts. This logic should not be attached to the endianness conversion. |
2f5d5a6 to
249a1a5
Compare
@mlugg Ups, moved to separate loop now |
249a1a5 to
dc0e56a
Compare
4a766b4 to
2d377f5
Compare
2d377f5 to
325e017
Compare
|
@MatthiasPortzel Would it be possible for you to take a look again? |
|
Nothing else that jumps out at me, but I’m not the one you need to ask. I’m unaffiliated with Zig, I was just making a suggestion. I know the core team is busy reviewing PRs ahead of the 0.14 release so I would just wait at this point. |
andrewrk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, thank you
Fixes a bug in Ip6Address.format where improper zero-run handling led to incorrect IPv6 compression.
This PR fixes #22440.