• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            通過系統(tǒng)填充的數(shù)據(jù)判斷內(nèi)存屬性

            Microsoft Visual C++ Runtime library

            C runtime library provides it own debug codes:
            0xCD, 0xCDCDCDCD - New objects. New objects are filled with 0xCD when they are allocated.
            0xFD, 0xFDFDFDFD - No-man's land memory. Extra bytes that belong to the internal block allocated, but not the block you requested. They are placed before and after requested blocks and used for data bound checking.
            0xDD, 0xDDDDDDDD - Freed blocks. The freed blocks kept unused in the debug heap's linked list when the _CRTDBG_DELAY_FREE_MEM_DF flag is set are currently filled with 0xDD. Although in some cases you won't see magic 0xDDDDDDDD value, as it will be overwritten by another debug function (e.g. 0xFEEEFEEE for HeapFree).

            These constants are defined in DbgHeap.c file as


            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 */



            Compiler initialisations

            0xCC, 0xCCCCCCCC - The /GX Microsoft Visual C++ compiler option initialises all local variables not explicitly initialised by the program. It fills all memory used by these variables with 0xCC, 0xCCCCCCCC.

            Windows NT memory codes

            0xABABABAB - Memory following a block allocated by LocalAlloc().
            0xBAADF00D - "Bad Food". This is memory allocated via LocalAlloc( LMEM_FIXED, ... ). It is memory that has been allocated but not yet written to.
            0xFEEEFEEE - OS fill heap memory, which was marked for usage, but wasn't allocated by HeapAlloc() or LocalAlloc(). Or that memory just has been freed by HeapFree().

            posted on 2007-10-16 16:47 Randy 閱讀(349) 評論(0)  編輯 收藏 引用


            只有注冊用戶登錄后才能發(fā)表評論。
            網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


            <2009年3月>
            22232425262728
            1234567
            891011121314
            15161718192021
            22232425262728
            2930311234

            導(dǎo)航

            統(tǒng)計

            常用鏈接

            留言簿(3)

            隨筆檔案

            搜索

            最新評論

            閱讀排行榜

            評論排行榜

            久久99国产综合精品免费| 久久99国产一区二区三区| 精品人妻伦九区久久AAA片69| 亚洲国产视频久久| 久久www免费人成精品香蕉| 精品熟女少妇av免费久久| 色偷偷偷久久伊人大杳蕉| 热re99久久6国产精品免费| 久久受www免费人成_看片中文| 久久99精品久久久久久野外| 99久久精品这里只有精品| 国产精品成人99久久久久 | 亚洲国产成人久久精品影视| 国产精品久久久久AV福利动漫| 97久久香蕉国产线看观看| 国产福利电影一区二区三区,免费久久久久久久精 | 久久国产成人精品国产成人亚洲| 97久久精品人人做人人爽| 精品久久久无码中文字幕天天| 色综合久久中文字幕综合网| 香蕉久久AⅤ一区二区三区| 尹人香蕉久久99天天拍| 欧美一区二区精品久久| 99久久精品免费看国产一区二区三区 | 国产亚洲精品自在久久| 日本免费久久久久久久网站| 国内精品久久久久国产盗摄| 欧美久久一区二区三区| 久久婷婷国产剧情内射白浆| 岛国搬运www久久| 久久精品视频一| 久久97精品久久久久久久不卡| 综合久久一区二区三区 | 亚洲国产成人久久综合碰| 亚洲精品WWW久久久久久| 国产成人无码精品久久久性色 | 久久久久久精品免费免费自慰| 亚洲色欲久久久综合网| 秋霞久久国产精品电影院| 模特私拍国产精品久久| 久久精品国产精品青草app|