Debugging issue with -m32 program

Mahmood Naderan via gdb gdb@sourceware.org
Mon Jul 9 19:43:00 GMT 2018


>Did you overwrite memory by strcpy to an output that's too small?

Indeed yes. But not too small. The buffer is more than 100 characters while dest is 100 characters. The question is why the same program, without specifying -m32, works actually?!
Which one is correct behavior? Crash or not crash?!


Regards,
Mahmood 



More information about the Gdb mailing list