* * vuln.c */ #include #include #include int main(int argc, char **argv){ char buf[256]; if(argc < 2){ printf("Usage : ./%s \n", argv[0]); exit(0); } strncpy(buf, argv[1], 256); buf[255] = '\0'; printf(buf); printf("\n"); return 0; }