• <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>

            通過(guò)系統(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 閱讀(352) 評(píng)論(0)  編輯 收藏 引用


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


            <2007年10月>
            30123456
            78910111213
            14151617181920
            21222324252627
            28293031123
            45678910

            導(dǎo)航

            統(tǒng)計(jì)

            常用鏈接

            留言簿(3)

            隨筆檔案

            搜索

            最新評(píng)論

            閱讀排行榜

            評(píng)論排行榜

            久久久久亚洲精品日久生情| 久久久精品午夜免费不卡| 欧美日韩精品久久久免费观看| 91精品久久久久久无码| 内射无码专区久久亚洲| 久久人妻少妇嫩草AV无码专区| 国产亚洲精品美女久久久| 久久久综合香蕉尹人综合网| 亚洲午夜无码久久久久| 99久久精品费精品国产| 久久久久久伊人高潮影院| 国产精品伊人久久伊人电影| 国产精品一区二区久久精品涩爱| 久久久久久亚洲AV无码专区| 亚洲色欲久久久久综合网| 久久se精品一区二区| 久久久久青草线蕉综合超碰 | 久久久国产精品福利免费| 日本精品久久久久久久久免费| 久久超乳爆乳中文字幕| 亚洲乱码日产精品a级毛片久久 | 无码国内精品久久人妻麻豆按摩| 俺来也俺去啦久久综合网| 亚洲欧美国产日韩综合久久| 久久九九免费高清视频| 久久香蕉国产线看观看乱码| 久久精品国产亚洲77777| 久久无码AV一区二区三区| 久久久久九九精品影院| 99精品久久久久久久婷婷| 国产精品99久久免费观看| 久久成人国产精品| 99麻豆久久久国产精品免费| …久久精品99久久香蕉国产| 日产精品久久久久久久| 欧洲人妻丰满av无码久久不卡| 久久久久国产精品嫩草影院| 伊人久久大香线蕉综合5g| 久久久久久久免费视频| 久久精品人人做人人爽电影| 亚洲中文久久精品无码|