Hi All,
Acn anybody explain me the behavior of the following program.
#include <stdio.h>
int main()
{
char *dst = (char *) malloc(4);
strcpy(dst, "This is a nice palace");
exit(0);
}
This is a clear case of memory corruption. But it do not crash. I am using
GCC as compiler.
~nandac
[Non-text portions of this message have been removed]
