• <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)論排行榜

            久久777国产线看观看精品| 久久综合久久久| 伊人 久久 精品| 亚洲一级Av无码毛片久久精品| 老司机午夜网站国内精品久久久久久久久 | 亚洲成av人片不卡无码久久| 色综合久久中文字幕综合网| 亚洲伊人久久大香线蕉综合图片| 99久久夜色精品国产网站| 丁香狠狠色婷婷久久综合| 久久久久无码精品| 99精品久久精品一区二区| 亚洲嫩草影院久久精品| 久久精品国产亚洲AV蜜臀色欲| 7777久久亚洲中文字幕| 国产成人无码精品久久久免费| 久久天天躁夜夜躁狠狠| 久久夜色tv网站| 亚洲香蕉网久久综合影视| 精品国产热久久久福利| 久久亚洲精精品中文字幕| 色8激情欧美成人久久综合电| 久久99国产精品一区二区| 伊人久久精品无码二区麻豆| 青青青青久久精品国产h久久精品五福影院1421| 久久99九九国产免费看小说| a级毛片无码兔费真人久久| 久久精品国产亚洲av日韩| 亚洲国产成人久久一区WWW| 精品久久人人妻人人做精品| 国产欧美一区二区久久| 香蕉久久夜色精品升级完成| 97香蕉久久夜色精品国产| 日本久久久久久久久久| 久久久久国产一区二区| 国产精品九九久久免费视频| 伊人久久精品线影院| 亚洲午夜精品久久久久久人妖| 精品久久久久久成人AV| 久久夜色精品国产欧美乱| 久久综合九色综合网站|