MSAN
MemorySanitizer (MSan) is a dynamic analysis tool in the LLVM project designed to detect reads of uninitialized memory in C and C++ programs. It works by instrumenting the program at compile time and maintaining a parallel shadow memory that encodes the initialization state of each byte of usable memory. Before every memory read, MSan checks the corresponding shadow value and reports an error if the memory being read has not been properly initialized, typically providing a stack trace to help locate the source of the issue.
Origin tracking is an optional feature of MSan. When enabled with flags such as -fsanitize-memory-track-origins, MSan
Build and usage: programs are compiled with clang using -fsanitize=memory and linked with the MemorySanitizer runtime.
Limitations and scope: MSan is primarily focused on detecting reads of uninitialized memory and does not by