Created
September 28, 2016 16:10
-
-
Save AndyNovo/1fcfd93bd481216f04b949732939405e to your computer and use it in GitHub Desktop.
This file contains hidden or 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]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment