Created
March 16, 2019 11:40
-
-
Save Bloofer/933dc33a8021ddbb3be428d747cad227 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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