rust-lang / rust-lang/rust-clippy
Warn on casts from raw pointers to integers
Open
Nobody has claimed this yet.
A-lint
E-medium
L-restriction
T-middle
- Dominant language
- Rust
- Stars
- 13.5k
- Forks
- 2.2k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 32
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test entry point is named in the issue. Start by locating the Clippy lint machinery for raw-pointer-to-integer casts, then add coverage for the requested warning; done means the relevant casts produce a clear diagnostic.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- security, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100