Skip to content

Conversation

swsnr
Copy link
Contributor

@swsnr swsnr commented Oct 13, 2024

Removes use of unsafe code for conversion and implicitly fixes endianess
issues in conversion.

Fixes #1535

Removes use of unsafe code for conversion and implicitly fixes endianess
issues in conversion.

Fixes #1535
@swsnr swsnr changed the title Safely convert InetAddress to IpAddr Safely and correctly convert InetAddress to IpAddr Oct 13, 2024
@swsnr
Copy link
Contributor Author

swsnr commented Oct 13, 2024

I can't make sense of the CI failure; any pointers?

@sdroege
Copy link
Member

sdroege commented Oct 14, 2024

The size mismatch is because the .gir files don't match the installed GLib version anymore. Don't worry about that, I'll take care of it.

Copy link
Member

@sdroege sdroege left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why this did the conversion so complicated. Your version is of course better :)

@sdroege sdroege added the needs-backport PR needs backporting to the current stable branch label Oct 14, 2024
@sdroege sdroege merged commit 17f4593 into gtk-rs:master Oct 14, 2024
23 of 48 checks passed
@swsnr swsnr deleted the 1535-safely-convert-to-ipaddr branch October 14, 2024 11:48
@sdroege sdroege added backported PR was backported to the current stable branch and removed needs-backport PR needs backporting to the current stable branch labels Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backported PR was backported to the current stable branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] impl From<InetAddress> for IpAddr mangles IPv6 address

2 participants