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

            隨筆檔案

            搜索

            最新評論

            閱讀排行榜

            評論排行榜

            一本大道久久香蕉成人网| 欧美亚洲另类久久综合婷婷| 国产美女亚洲精品久久久综合| 无码国内精品久久人妻麻豆按摩| 色综合久久中文字幕综合网| 亚洲AV乱码久久精品蜜桃| 久久w5ww成w人免费| 99久久99久久精品国产片果冻 | 久久综合亚洲欧美成人| 狠狠狠色丁香婷婷综合久久五月| 久久99精品久久久久久噜噜| 日韩AV无码久久一区二区| 99热精品久久只有精品| av色综合久久天堂av色综合在 | 国产福利电影一区二区三区久久久久成人精品综合 | 国产人久久人人人人爽| 精品欧美一区二区三区久久久| 亚洲午夜久久久影院伊人| 久久久久亚洲AV成人网人人网站| 久久夜色精品国产网站| 久久99热这里只频精品6| 国产激情久久久久影院| 国产精品视频久久久| 亚洲av伊人久久综合密臀性色| 久久久无码精品午夜| 亚洲国产精品久久久久| 国产精品久久久久久影院 | 狠狠狠色丁香婷婷综合久久俺| 一本色道久久综合狠狠躁| 亚洲国产成人精品无码久久久久久综合| 久久狠狠高潮亚洲精品| 亚洲国产精品高清久久久| 亚洲愉拍99热成人精品热久久| 久久亚洲中文字幕精品一区| 合区精品久久久中文字幕一区 | 2020久久精品国产免费| 久久99精品久久久久久久久久| 狠狠色综合网站久久久久久久高清| 欧美性猛交xxxx免费看久久久| 青青草国产97免久久费观看| 久久久久久久91精品免费观看|