-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
C-bugCategory: bugCategory: bug
Description
Problem
hardcoded paths in binary with username and fs paths. bloats binary, prevent reproducibility, and violates privacy. even in release
mode
strip
command does not properly remove everything too
redacted EXAMPLES
internal error: entered unreachable codeD:\REDACTED\.cargo\registry\src\github.com-1ecc6299db9ec823\aho-corasick-0.7.15\src\ahocorasick.rs
D:\REDACTED\.cargo\registry\src\github.com-1ecc6299db9ec823\aho-corasick-0.7.15\src\prefilter.rssetRareByteOffsets
called `Option::unwrap()` on a `None` valueD:\REDACTED\.cargo\registry\src\github.com-1ecc6299db9ec823\aho-corasick-0.7.15\src\classes.rs
D:\REDACTED\.cargo\registry\src\github.com-1ecc6299db9ec823\aho-corasick-0.7.15\src\packed\pattern.rs
internal error: entered unreachable codeD:\REDACTED\.cargo\registry\src\github.com-1ecc6299db9ec823\aho-corasick-0.7.15\src\packed\teddy\compile.rs
D:\REDACTED\.cargo\registry\src\github.com-1ecc6299db9ec823\rand-0.8.3\src\rngs\thread.rs
D:\REDACTED\.cargo\registry\src\github.com-1ecc6299db9ec823\rand_chacha-0.3.0\src\guts.rs
D:\REDACTED\git\PROJECT\target\release\deps\PROJECT.pdb
Steps
- install rust
- write an app using a dep
- compile app
- check strings for user id
Possible Solution(s)
auto strip this info (preferred) or provide wildcard way to mangle paths
Notes
Output of cargo version
:
> cargo version
cargo 1.50.0 (f04e7fab7 2021-02-04)
Related
#5505
rust-lang/rust#40374
rust-lang/rust#40552
rust-lang/rust#75263
xanonid, queer, PonasKovas, not-matthias, lemoce and 15 moreEvreyth5
Metadata
Metadata
Assignees
Labels
C-bugCategory: bugCategory: bug