4 ms·
0 is also the most common variable value probably :p hard to tell a valid state from an invalid one
by google234123 3y ago
0 is also the most common variable value probably :p hard to tell a valid state from an invalid one
- woodruffw 3y agoYes, that's why the "uninitialized" part is important; we're talking about a mitigation that would make UB potentially easier rather than harder to exploit. Having 0 as a default initialization value in a language where doing so is well defined makes perfect sense; this is primarily an issue for C and C++ (to a lesser extent).