Skip to content

safe-uninit is unsound #1265

Open
Open
@Hezuikn

Description

@Hezuikn

rust playground

the above example doesnt reproduce using the actual crate in question but its "safe" wrapper is literally just:
fn safe_uninit() -> Self { unsafe { MaybeUninit::uninit().assume_init() } }

Metadata

Metadata

Assignees

No one assigned

    Labels

    UnsoundInformational / Unsound

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions