Skip to content

Conversation

bnoordhuis
Copy link
Owner

std::net::Ipv4Addr and std::net::Ipv6Addr are no longer transparent wrappers around their respective libc types. Construct them manually rather than through casting.

Fixes #9.

std::net::Ipv4Addr and std::net::Ipv6Addr are no longer transparent
wrappers around their respective libc types. Construct them manually
rather than through casting.

Fixes #9.
@bnoordhuis bnoordhuis merged commit 5295577 into main Sep 12, 2022
@bnoordhuis bnoordhuis deleted the fix9 branch September 12, 2022 00:47
bnoordhuis added a commit to bnoordhuis/deno that referenced this pull request Sep 12, 2022
v0.1.3 contains code that will stop working with newer versions of
libstd because the layout of some std::net types changed.

Refs: bnoordhuis/netif#10
bnoordhuis added a commit to bnoordhuis/deno that referenced this pull request Sep 13, 2022
v0.1.3 contains code that will stop working with newer versions of
libstd because the layout of some std::net types changed.

Refs: bnoordhuis/netif#10
bnoordhuis added a commit to bnoordhuis/deno that referenced this pull request Sep 19, 2022
v0.1.3 contains code that will stop working with newer versions of
libstd because the layout of some std::net types changed.

Refs: bnoordhuis/netif#10
cjihrig pushed a commit to denoland/deno that referenced this pull request Sep 19, 2022
v0.1.3 contains code that will stop working with newer versions of
libstd because the layout of some std::net types changed.

Refs: bnoordhuis/netif#10
dsherret pushed a commit to dsherret/deno that referenced this pull request Sep 22, 2022
v0.1.3 contains code that will stop working with newer versions of
libstd because the layout of some std::net types changed.

Refs: bnoordhuis/netif#10
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.

Changes in memory layout of the std net types will result in UB

1 participant