News for hackers. Stuff that matters.
Re:OpenMandriva, the first Clang-built Linux distribution by ori_b on Sunday June 16, 2019 @04:01PM (#20197572)
That seems like a mistake to turn on, given that clang also has options to error on uses of potentially uninitialized variables. Zero is often just as wrong as any other value, so this flag will hide real bugs.

In fact, I'd rather have a flag that clobbers values with random data, to make sure that uses of uninitialized values are caught as soon as possible.

Re:OpenMandriva, the first Clang-built Linux distribution by kjeetgill on Monday June 17, 2019 @03:18AM (#20200638)
> error on uses of potentially uninitialized variables.

This is absolutely the best option. That said,

> I'd rather have a flag that clobbers values with random data.

That's roughly what happens in practice as is, doesn't it? Barring the first option I'd rather have an option that fails predictably and reproducibly. An arbitrary but deterministic garbage number maybe? Like --set-uninitialized=0xdeadbeef. That might be getting too elaborate, haha.