Skip to content

Instantly share code, notes, and snippets.

@Bloofer
Created March 16, 2019 11:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bloofer/933dc33a8021ddbb3be428d747cad227 to your computer and use it in GitHub Desktop.
Save Bloofer/933dc33a8021ddbb3be428d747cad227 to your computer and use it in GitHub Desktop.
#include <string.h>
void foo (char *bar)
{
char c[12];
strcpy(c, bar); // no bounds checking
}
int main (int argc, char **argv)
{
foo(argv[1]);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment