Boost logo

Boost :

Subject: Re: [boost] [UUID] version v12
From: John Bytheway (jbytheway+boost_at_[hidden])
Date: 2008-10-13 17:05:14


Andy Tompkins wrote:
> Hi Mathias,
>
> On Thu, 09 Oct 2008 12:54:52 +0200, "Mathias Gaunard"
> <mathias.gaunard_at_[hidden]> 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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk