Skip to content

CString::from_vec_unchecked may not need to be unsafe #29918

Closed
@huonw

Description

@huonw

It's not obvious if one can cause memory unsafety with this function: when would an interior null be problematic?

Pointed out by @wthrowe in rust-lang/rfcs#1323 (comment).

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-libs-apiRelevant to the library API 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