Original Post
I was recently writing a C program. I noticed that Linux gives me a segmentation fault when I attempt to read memory not in the page allocated to my process. But Win2k seems to allow me to read other memory pages (that may belong to another process).
I did this simply by reading down (up?) the stack until you pass the edge of the page:
int i;
int j;
int * k;
k = &i
for (j=0;j<100000 /* some big number */; j++) {
printf("Addr: %x\tValue: %x %d\n", &k[-j], k[-j], j);
}
Is this correct, or am i missing something? So any application running in Win2k can read any other applications data?
Edited by - Z01 on August 2, 2001 1:59:32 AM