Problem with debugging -m32 program

U.Mutlu um@mutluit.com
Mon Jul 9 10:19:00 GMT 2018


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?



More information about the Gcc-help mailing list