2014/05 썸네일형 리스트형 buffer overflow 코딩 #include void main(){char *name;char *command;name=(char *)malloc(10);command=(char *)malloc(128);printf("address of Name is : %d \n", name);printf("address of Command is : %d \n", command);printf("Difference between address is : %d \n", command-name);printf("hey Enter your name: ");gets(name);printf("Hellow %s\n", name);system(command); } 컴파일MacBook-2:~ MGP$ gcc buffer.c -o buffer 실행MacBook-.. 더보기 이전 1 다음