|
From: Tom H. <to...@co...> - 2005-10-17 19:06:49
|
In message <942...@ha...>
"Yeshurun, Meir" <mei...@in...> wrote:
> There is one issue though: It looks like Valgrind reports partial loads
> as errors by default. I think this shouldn't be the default behavior.
Actually valgrind doesn't report any loads as errors - it only
reports an error when you use an undefined value in a way that
would effect the result of the program. In other words when a
conditional jump depends on it or you use it as a pointer and
read or write through that pointer.
It tracks definedness at bit level, so a partial load will mark
some bits as defined and leaves others alone. If you then later
use one of the undefined bits it will complain.
There are edge cases where it thinks a bit is used when it isn't
really but they are rare.
I think you need to explain what you mean more fully.
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|