3 ms·
MemorySanitizer will catch uninitialized variable errors.
by 10000truths 5y ago
MemorySanitizer will catch uninitialized variable errors.
- tialaramex 5y agoThe Sanitizers catch errors that happen when they're running So in many situations the Sanitizer gives you a false sense of security that your code is correct because in the test environment, with the Sanitizer, it works, and then in Production, without a Sanitizer, under some circumstances it blows up because those circumstances never arose in your test environment. Compare (safe) Rust which doesn't have uninitialized variables, and even WUFFS which doesn't have array bounds errors. In both cases the entire problem doesn't exist, programs which exhibit this problem are not valid programs in those languages, which is great because we did not mean to write these programs anyway. Hooray.