Wherein I propose that C++ initialize all stack variables to zero, preventing ~10% of CVEs.
Cost: none.
How does it make sense? I fail to see how this is not simply a very weird case of missed optimization, given that the compiler was free to compile the code into something that zero-initializes stack variables earlier anyway (because any use of them would be undefined behaviour).