How does Valgrind detect uninitialized memory?

How does Valgrind detect uninitialized memory?
Answer
You can use Valgrind with any program. Valgrind works by doing a
just-in-time (JIT) translation of the input program into an equivalent version that has additional checking. For the memcheck tool, this means it literally looks at the x86 code in the executable, and detects what instructions represent memory accesses.
 

Tìm kiếm

Back
Top