Who said memory corruption had to occur "reliably"??
"Permissible undefined behavior ranges from ignoring the situation completely with unpredictable results"
> compilers can't allocate local variables in register.
Why not?
> If it's on stack, out-of-bounds write may reliably corrupt stack, so how can it be on register?
> And I am yet to see any good answer.
What would qualify an answer as "good" IYHO?
Usually when I write code that corrupts memory, it reliably corrupts memory an unreliable way.
Who said memory corruption had to occur "reliably"??
"Permissible undefined behavior ranges from ignoring the situation completely with unpredictable results"
> compilers can't allocate local variables in register.
Why not?
> If it's on stack, out-of-bounds write may reliably corrupt stack, so how can it be on register?
"Permissible undefined behavior ranges from ignoring the situation completely with unpredictable results"
> And I am yet to see any good answer.
What would qualify an answer as "good" IYHO?