Skip to content

Unsoundness in <SockRef as From<&AsRawFd>>::from #229

Closed
@coolreader18

Description

@coolreader18

You can do something like:

let sock = socket2::SockRef::from(&-1);
assert!(Some(sock).is_none());

With the changes in #222

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions