Skip to content

Instantly share code, notes, and snippets.

@FreeER
Last active April 8, 2019 21:08
Show Gist options
  • Save FreeER/fdf9a470ff2f96b0aaff77692247b671 to your computer and use it in GitHub Desktop.
Save FreeER/fdf9a470ff2f96b0aaff77692247b671 to your computer and use it in GitHub Desktop.
VS debugging bit patterns
source: https://www.softwareverify.com/memory-bit-patterns.php
0xCCCCCCCC uninitialised stack memory
0xCDCDCDCD uninitialised heap memory (malloc(), realloc() or new)
0xDDDDDDDD deallocated memory (free() or delete).
0xFEEEFEEE part of a deallocated memory allocation (free() or delete).
0xBAADF00D uninitalized HeapAlloc(), LocalAlloc(LMEM_FIXED), GlobalAlloc(GMEM_FIXED).
0xDEADBEEF memory deallocated using HeapFree(), LocalFree(), GlobalFree().
0xABABABAB guard block after memory allocated using HeapAlloc(), LocalAlloc(LMEM_FIXED), GlobalAlloc(GMEM_FIXED) or CoTaskMemAlloc().
0xBDBDBDBD guard pattern around memory allocations allocated with the "aligned" allocators
0xFDFDFDFD guard pattern around memory allocations allocated with the "non-aligned" (default) allocators.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment