Mahmood Naderan via gcc-help wrote on 07/09/2018 11:53 AM:
If you're overwriting the stack, then it is undefined behaviour. Anything
can happen.
That should be concerned if the modified return address is going to be executed (jump to another location). What is odd here, is that I am just copying and overwriting the values. Please see in the first post that the next command just runs strcpy. So, no matter what is the result, it has to overwrite the memory location.
Don't you agree?
Sorry, I don't get your point.
What else do you expect to happen?