Skip to content

SocketAncillary doesn't ensure the control buffer is aligned at least as much as cmsghdr #139861

Open
@bjorn3

Description

@bjorn3

SocketAncillary accepts an arbitrary slice as input even if the slice is not correctly aligned to cmsghdr. This is unsound.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ioArea: `std::io`, `std::fs`, `std::net` and `std::path`C-bugCategory: This is a bug.F-unix_socket_ancillary_data`#![feature(unix_socket_ancillary_data)]`O-unixOperating system: Unix-likeT-libsRelevant to the library team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions