Skip to content

Instantly share code, notes, and snippets.

@sycobuny
Created August 3, 2011 02:29
Show Gist options
  • Save sycobuny/1121772 to your computer and use it in GitHub Desktop.
Save sycobuny/1121772 to your computer and use it in GitHub Desktop.
Simple program designed to crash. For some reason.
#include <stdio.h>
#include <string.h>
int main(int argc, char **argv) {
char crash[16];
char* plz = "this is probably longer than 16 characters";
strcpy(crash, plz);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment