
Andy Tompkins wrote:
Hi Mathias,
On Thu, 09 Oct 2008 12:54:52 +0200, "Mathias Gaunard" <mathias.gaunard@ens-lyon.org> said:
Atry wrote:
Hi Andy, I saw the source code in seed_rng.hpp, I found you use an uninitialized buffer[] if fopen fails. As a side note, would it be possible to use hooks or something so that reading that uninitialized memory doesn't generate errors with memory checking tools such as valgrind?
I assume it would be possible, and I'm quite open to the idea. Do you have any suggestions on how to do this?
Valgrind provides macros to do this sort of thing. I think you'd want VALGRIND_MAKE_MEM_DEFINED from valgrind's memcheck.h. I assume you don't want to make the UUID library depend on valgrind headers, though... John Bytheway