Files
lab01/vulnerable.c
2020-09-29 12:06:45 -04:00

12 lines
187 B
C

#include <stdio.h>
#include <string.h>
void test(char *test) {
char buffer[4];
strcpy(buffer, test);
}
void main(int argc, char *argv[]) {
if (argc > 1)
test(argv[1]);
}