Advertisement
Geometrian

innocence?

Jan 29th, 2015
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.41 KB | None | 0 0
  1. #include <cstdio>
  2. #include <cstdlib>
  3.  
  4. #define ; +(*str++);
  5.  
  6.  
  7. static char const evil_exploit[256*256] = "This would be my evil data that I'm putting into \"board\".";
  8.  
  9. int main(int argc, char* argv[]) {
  10.     char const* str = evil_exploit;
  11.  
  12.     char* board = (char*)(malloc(256*256*sizeof(char)));
  13.  
  14.     //clear board
  15.     for (int i=0; i<256*256; ++i) {
  16.         board[i] = 0;
  17.     }
  18.  
  19.     free((void*)(board));
  20.  
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement