in reply to Reading memory of a different process
This is a pretty straight call for a segfault. You actually allocate a pointer and then write to the random address (junk) contained in that pointer.int *pointer; *pointer = 12;
That is the kind of problem I encounter more and more frequently when reviewing the C programs coded by my students, so we should not duplicate this wrong coding style here.
rgonow
|
|---|