힙 힙 설명은 정말 별거없지만상기시킬겸 유저영역과 커널영역을 다시 보기로 함.일단 간단간단하게 핵심만 설명하자면.. 0xFFFFFFFF (high)kernel section-----------------------[stack section][shared library section][heap section][(uninitialized)data section][(initialized)data section][code section]0x00000000 (low) 뭐 이렇게 생겼다고 한다. 코드영역은 말 그대로 프로그램 실행되면 opcode 올라가는 곳이고.. 데이터 영역은 전역변수나 static같은 변수들이 할당됨여기는 시작과 동시에 할당되고 프로그램이 종료가 되야 소멸함. 힙 영역은 malloc이나 callo.. 더보기 ㅠ 오늘은 과제만 해야지 ㅠㅠ 더보기 level 19 -> 20 [xavius@localhost xavius]$ cat death_knight.c /* The Lord of the BOF : The Fellowship of the BOF - dark knight - remote BOF*/ #include #include #include #include #include #include #include #include #include main(){char buffer[40]; int server_fd, client_fd; struct sockaddr_in server_addr; struct sockaddr_in client_addr; int sin_size; if((server_fd = socket(AF_INET, SOCK_STREAM, 0)) == -1){perror(.. 더보기 이전 1 ··· 12 13 14 15 16 17 18 ··· 27 다음