{"id":82,"date":"2006-07-26T17:28:05","date_gmt":"2006-07-26T15:28:05","guid":{"rendered":"https:\/\/alax.info\/blog\/82"},"modified":"2006-07-26T17:28:05","modified_gmt":"2006-07-26T15:28:05","slug":"cc-memory-manager-magic-values","status":"publish","type":"post","link":"https:\/\/alax.info\/blog\/82","title":{"rendered":"C\/C++ memory manager magic values"},"content":{"rendered":"<p>The values the debug version of CRT memory manager fills memory with.<br \/>\ndbgheap.c:<\/p>\n<blockquote><p>static unsigned char _bNoMansLandFill = 0xFD;\u00c2\u00a0\u00c2\u00a0 \/* fill no-man&#8217;s land with this *\/<br \/>\nstatic unsigned char _bDeadLandFill\u00c2\u00a0\u00c2\u00a0 = 0xDD;\u00c2\u00a0\u00c2\u00a0 \/* fill free objects with this *\/<br \/>\nstatic unsigned char _bCleanLandFill\u00c2\u00a0 = 0xCD;\u00c2\u00a0\u00c2\u00a0 \/* fill new objects with this *\/<br \/>\nstatic unsigned char _bAlignLandFill\u00c2\u00a0 = 0xBD;\u00c2\u00a0\u00c2\u00a0 \/* fill no-man&#8217;s land for<br \/>\naligned routines *\/<\/p><\/blockquote>\n<p>Additionally, debug compilation (optimization turned off?) produces code which uses 0xCC fill to initialize variables on stack and<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The values the debug version of CRT memory manager fills memory with. dbgheap.c: static unsigned char _bNoMansLandFill = 0xFD;\u00c2\u00a0\u00c2\u00a0 \/* fill no-man&#8217;s land with this *\/ static unsigned char _bDeadLandFill\u00c2\u00a0\u00c2\u00a0 = 0xDD;\u00c2\u00a0\u00c2\u00a0 \/* fill free objects with this *\/ static unsigned char _bCleanLandFill\u00c2\u00a0 = 0xCD;\u00c2\u00a0\u00c2\u00a0 \/* fill new objects with this *\/ static unsigned char&hellip; <\/p>\n<p><a class=\"moretag\" href=\"https:\/\/alax.info\/blog\/82\">Read the full article<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-82","post","type-post","status-publish","format-standard","hentry","category-atl"],"_links":{"self":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts\/82","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/comments?post=82"}],"version-history":[{"count":0,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts\/82\/revisions"}],"wp:attachment":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/media?parent=82"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/categories?post=82"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/tags?post=82"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}