Skip to content

Warn on casts from raw pointers to integers #1070

@rocallahan

Description

@rocallahan

Leaking pointer bits to output is bad because it helps subvert ASLR and may provide other side channels for attackers. Preventing casts from raw pointers to integers would (AFAIK) prevent such leaks in safe Rust code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: New lintsE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.L-restrictionLint: Belongs in the restriction lint groupT-middleType: Probably requires verifiying types

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions