이런게 있었네..


Address Off
set
After HeapAlloc() After
malloc()
During
 free()
After HeapFree() Comments
0x00320FD8 -40 0x01090009 0x01090009 0x01090009 0x0109005A Win32 heap info
0x00320FDC -36 0x01090009 0x00180700 0x01090009 0x00180400 Win32 heap info
0x00320FE0 -32 0xBAADF00D 0x00320798 0xDDDD
DDDD
0x00320448 Ptr to next CRT heap block (allocated earlier in time)
0x00320FE4 -28 0xBAADF00D 0x00000000 0xDDDD
DDDD
0x00320448 Ptr to prev CRT heap block (allocated later in time)
0x00320FE8 -24 0xBAADF00D 0x00000000 0xDDDD
DDDD
0xFEEEFEEE Filename of malloc() call
0x00320FEC -20 0xBAADF00D 0x00000000 0xDDDD
DDDD
0xFEEEFEEE Line number of malloc() call
0x00320FF0 -16 0xBAADF00D 0x00000008 0xDDDD
DDDD
0xFEEEFEEE Number of bytes to malloc()
0x00320FF4 -12 0xBAADF00D 0x00000001 0xDDDD
DDDD
0xFEEEFEEE Type (0=Freed, 1=Normal, 2=CRT use, etc)
0x00320FF8 -8 0xBAADF00D 0x00000031 0xDDDD
DDDD
0xFEEEFEEE Request #, increases from 0
0x00320FFC -4 0xBAADF00D 0xFDFD
FDFD
0xDDDD
DDDD
0xFEEEFEEE No mans land
0x00321000 +0 0xBAADF00D 0xCDCD
CDCD
0xDDDD
DDDD
0xFEEEFEEE The 8 bytes you wanted
0x00321004 +4 0xBAADF00D 0xCDCD
CDCD
0xDDDD
DDDD
0xFEEEFEEE The 8 bytes you wanted
0x00321008 +8 0xBAADF00D 0xFDFD
FDFD
0xDDDD
DDDD
0xFEEEFEEE No mans land
0x0032100C +12 0xBAADF00D 0xBAAD
F00D
0xDDDD
DDDD
0xFEEEFEEE Win32 heap allocations are rounded up to 16 bytes
0x00321010 +16 0xABABABAB 0xABAB
ABAB
0xABAB
ABAB
0xFEEEFEEE Win32 heap bookkeeping
0x00321014 +20 0xABABABAB 0xABAB
ABAB
0xABAB
ABAB
0xFEEEFEEE Win32 heap bookkeeping
0x00321018 +24 0x00000010 0x00000010 0x00000010 0xFEEEFEEE Win32 heap bookkeeping
0x0032101C +28 0x00000000 0x00000000 0x0000
0000
0xFEEEFEEE Win32 heap bookkeeping
0x00321020 +32 0x00090051 0x00090051 0x00090051 0xFEEEFEEE Win32 heap bookkeeping
0x00321024 +36 0xFEEE0400 0xFEEE
0400
0xFEEE
0400
0xFEEEFEEE Win32 heap bookkeeping
0x00321028 +40 0x00320400 0x00320400 0x00320400 0xFEEEFEEE Win32 heap bookkeeping
0x0032102C +44 0x00320400 0x00320400 0x00320400 0xFEEEFEEE Win32 heap bookkeeping




원본글
http://www.nobugs.org/developer/win32/debug_crt_heap.html

+ Recent posts