# std.Io.Threaded: correctly initialize PosixAddress/WsaAddress from sockaddr \(\#30722\) · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/514b103edbfa7c66ef5aeb01b5b79110260ce64f)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 514b103edbfa7c66ef5aeb01b5b79110260ce64f

Requested commit: 514b103edbfa7c66ef5aeb01b5b79110260ce64f

Commit: 514b103edbfa7c66ef5aeb01b5b79110260ce64f

Tree: e197016bc479e656c76a29a0bf6733d48305e694

Author: moriazoso

Committer: Andrew Kelley

## Message

```
std.Io.Threaded: correctly initialize PosixAddress/WsaAddress from sockaddr (#30722)

Resolves ziglang/zig#30672 - UB caused by `std.Io.Threaded.netLookupFallible` incorrectly initializing `PosixAddress`/`WsaAddress` from `*sockaddr`.

Reviewed-on: https://codeberg.org/ziglang/zig/pulls/30722
Co-authored-by: moriazoso <greysonmurray.dev@gmail.com>
Co-committed-by: moriazoso <greysonmurray.dev@gmail.com>

```

## Parents

- [6a5bb3ede36ab9dd7a5ce95e1339ca4e138886fc](https://git.cafe/gitcafe/zig/commit/6a5bb3ede36ab9dd7a5ce95e1339ca4e138886fc?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/514b103edbfa7c66ef5aeb01b5b79110260ce64f?format=markdown)
