Skip to content

Transmutes through usize do not preserve provenance, use AtomicPtr instead #1

@saethlin

Description

@saethlin

It looks to me like this crate has copied a strategy from the standard library that I patched out of the standard library in rust-lang/rust#95621. Since Rust has Provenance this pattern causes this crate to execute UB.

I encountered this issue in a crater run for rust-lang/rust#121282.

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