Re: [ANNOUNCE] kmemcheck v7

From: Andi Kleen
Date: Sat May 10 2008 - 08:31:11 EST


> - kmemcheck can only warn for dynamic memory, whereas kmemcheck I
> believe will also work for local variables, static variables, etc.

I don't think that's true. valgrind can only detect uninitialized
local variables in one special case (first use of the stack region).
But as soon as you reuse stack which is pretty common it won't
be able to detect the next uninitialized use in a stack frame.

Luckily the compilers do a reasonable job at detecting them at build time.

And static/global variables are never uninitialized in C.

-Andi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/