News for hackers. Stuff that matters.
Re:Most loved programming language Rust sparks privacy concerns by mackal on Saturday April 03, 2021 @11:45AM (#26681932)
So does MSVC and GCC and clang ...
Re:Most loved programming language Rust sparks privacy concerns by klodolph on Saturday April 03, 2021 @11:58AM (#26682050)
No. There's existing tooling to get reproducible builds with those compilers, and it's fairly easy to produce output that doesn't include full file paths. Passing relative paths to the compiler is one of the more common ways to use them, and this only leaks relative pathnames which don't reveal information about the system they were compiled on. You can also redact information like __DATE__ quite easily, just by adding e.g. -D__DATE__=\"redacted\" to your command-line. Bazel does this by default because using __DATE__ interferes with reproducible builds. Other projects like Debian have also made efforts to make their builds reproducible. Not 100% of Debian packages are reproducible, but a significant percentage of them are, and using GCC or Clang is not a barrier.
Re:Most loved programming language Rust sparks privacy concerns by fanf2 on Saturday April 03, 2021 @11:54AM (#26682008)
gcc and clang have options to strip paths to support reproducible builds

https://reproducible-builds.org/docs/build-path/

Re:Most loved programming language Rust sparks privacy concerns by rrss on Saturday April 03, 2021 @12:10PM (#26682151)
So does rustc.
Re:Most loved programming language Rust sparks privacy concerns by FpUser on Saturday April 03, 2021 @12:29PM (#26682324)
I just checked my project (multiplatform C++ server for Windows and Linux). Neither has any identifiable info in release build (Linux one is compiled by clang though)
Re:Most loved programming language Rust sparks privacy concerns by lupire on Saturday April 03, 2021 @11:55AM (#26682021)
Are you sure?
Re:Most loved programming language Rust sparks privacy concerns by SCHiM on Saturday April 03, 2021 @11:58AM (#26682048)
I can confirm MSVC. Not sure about clang. Although you can disable this. The default release builds, with optimization, leaks: paths, names and symbol names.
Re:Most loved programming language Rust sparks privacy concerns by lupire on Saturday April 03, 2021 @11:59AM (#26682067)
"you can disable this" is the critical difference.
Re:Most loved programming language Rust sparks privacy concerns by admax88q on Saturday April 03, 2021 @12:08PM (#26682131)
I guess, but i would rather it be the case that not only the default but the _only_ config not leak this stuff.