Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Question

Name: Anonymous 2012-01-16 16:18


void anus(int i){
  int *p = &i;
  p = p - sizeof(void*);
  *p = NULL;
}

int main(int argc,char *argv[]){
  fib(0);
}



What does this code produce?

Name: Anonymous 2012-01-16 17:01

>>8

Again, I'm assuming current call conventions on a x86 machine. It can be 48-bit only if the pointer is a far pointer, which is not the case in a flat memory model, otherwise it will be 32-bit.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List