First, I will explain what all these values that you see, like CD, DD, and so forth, mean.

Value Name Description
0xCD : [Clean Memory] Allocated memory via malloc or new but never written by the application.
0xDD : [Dead Memory] Memory that has been released with delete or free. It is used to detect writing through dangling pointers.
0xFD : [Fence Memory] Also known as "no mans land." This is used to wrap the allocated memory (like surrounding it with fences) and is used to detect indexing arrays out of bounds.
0xAB : [Allocated Block?] Memory allocated by LocalAlloc().
0xBAADF00D : [Bad Food] Memory allocated by LocalAlloc() with LMEM_FIXED, but not yet written to.
0xCC : When the code is compiled with the /GZ option, uninitialized variables are automatically assigned to this value (at byte level).

If you take a look at DBGHEAP.C, you can see how some of these values are defined:

static unsigned char _bNoMansLandFill = 0xFD;   /* fill no-man's land with this */
static unsigned char _bDeadLandFill   = 0xDD;   /* fill free objects with this */
static unsigned char _bCleanLandFill  = 0xCD;   /* fill new objects with this */

댓글 0

파일 첨부

여기에 파일을 끌어 놓거나 파일 첨부 버튼을 클릭하세요.

파일 크기 제한 : 0MB (허용 확장자 : *.*)

0개 첨부 됨 ( / )
 
목록
번호 제목 글쓴이 날짜 조회 수
24 아마추어 암호 설계자에게 주는 충고 by 브루스 슈나이어 단장 2005.12.22 983
23 AMD CPU 리퍼런스 테이블 단장 2005.07.11 978
22 서울 시내에서 '무료'로 주차하기 단장 2007.03.06 976
21 R6002 floating point not loaded ??? 단장 2006.05.16 973
» VC 디버그빌드에서 들어가는 쓰레기값들의 의미 단장 2006.04.15 964
19 이펙터 단장 2006.06.14 962
18 NOR-플래시 메모리 제어 (2) 단장 2005.07.04 961
17 유명 다이아몬드들 단장 2007.01.31 960
16 일어 12월명 [1] 단장 2006.03.21 933
15 귤화위지의 고사 단장 2005.10.03 924
14 No Silver Bullet 단장 2007.01.04 911
13 이해의 선물 단장 2007.03.02 909
12 부동산 매수 시 고려해야 할 38가지 단장 2006.04.19 882
11 파워맥에 들어가는 배터리 단장 2005.06.28 864
10 오자서 평전 단장 2005.09.26 855
9 플래시 메모리 쉽게 끝내기 (1) 단장 2005.07.04 855
8 해외 취업, 미국으로 가는 길 단장 2006.04.26 849
7 빠른 1/sqrt(n) 계산방법 단장 2014.03.05 549
6 마포에서 AF되는 포서드용 렌즈들 단장 2014.02.13 436
5 VC 2012이후에서 릴리즈 빌드 스택변수들 디버깅하기 file 단장 2014.03.05 401