Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <string.h>
- #include <stdio.h>
- void unreachable_code ()
- {
- printf("This code is not executed");
- }
- void vuln (char *arg)
- {
- char buffer[50];
- strcpy(buffer, arg);
- printf("buffer = <%s>\n", buffer);
- }
- int main (int argc, char **argv)
- {
- if (argc > 1)
- vuln(argv[1]);
- printf("Good Bye!");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement