Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdio>
- #include <cstdlib>
- #define ; +(*str++);
- static char const evil_exploit[256*256] = "This would be my evil data that I'm putting into \"board\".";
- int main(int argc, char* argv[]) {
- char const* str = evil_exploit;
- char* board = (char*)(malloc(256*256*sizeof(char)));
- //clear board
- for (int i=0; i<256*256; ++i) {
- board[i] = 0;
- }
- free((void*)(board));
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement