Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 14th, 2012  |  syntax: C  |  size: 0.22 KB  |  views: 80  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #include <stdlib.h>
  2. #include <sys/mman.h>
  3.  
  4. int main(int argc, char ** argv)
  5. {
  6.     mmap(NULL, sizeof(char), PROT_READ | PROT_WRITE, MAP_FIXED | MAP_ANONYMOUS,
  7.          0, 0);
  8.     *( ( char* ) NULL ) = 0;
  9.     return 0;
  10. }
clone this paste RAW Paste Data