Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- void evilfunction(char* input){
- char buffer[1000];
- strcpy(buffer, input); // Vulnerable function.
- }
- int main(int argc, char** argv){
- evilfunction(argv[1]);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement