Skip to content

OsSocketAddr is unsound in upcoming rustc release #3

Closed

Description

@Noah-Kennedy

This crate assumes that rust's SocketAddr types are implemented with the C layout, which is not guaranteed. It has generally happened to be true in the past, but this is no longer going to be true. I would suggest modifying the conversion trait implementations to get around this.

Activity

  1. added 3 commits that reference this issue on Aug 26, 2022
    5dc8a80
    2b6e319
    07a3c13
  2. a-ba commented on Aug 26, 2022

    @a-ba
    Owner

    thanks for the report

  3. added a commit that references this issue on Aug 26, 2022
    1bc7f71
  4. Noah-Kennedy commented on Aug 26, 2022

    @Noah-Kennedy
    Author

    Thanks for the response! I would also strongly recommend filing a rustsec advisory for the unpatched versions of this crate and potentially yanking unpatched versions as well, once this fix is released.

  5. a-ba commented on Aug 26, 2022

    @a-ba
    Owner

    that was already in my todo list ;-)

  6. Noah-Kennedy commented on Aug 26, 2022

    @Noah-Kennedy
    Author

    Awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions