diff options
Diffstat (limited to 'overflow_function.c')
-rw-r--r-- | overflow_function.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/overflow_function.c b/overflow_function.c deleted file mode 100644 index 6d6e950..0000000 --- a/overflow_function.c +++ /dev/null @@ -1,16 +0,0 @@ -#include <stdio.h> -#include <stdlib.h> -#include <string.h> - -void stupid(char *str) -{ - char buf[30]; - /* exploitable function */ - strcpy(buf, str); -} - -int main(int argc, char **argv) -{ - stupid(argv[1]); - return 0; -} |