[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH] util: Make sure random data is initialized when in virRandom



Daniel P. Berrange wrote:
> On Mon, Oct 12, 2009 at 10:32:14AM -0400, Cole Robinson wrote:
>> When writing some tests, I mistakenly attempted to auto-generate a UUID,
>> which caused a segfault: virRandom was being used without calling
>> virRandomInitialize. Make sure this case can't happen.
> 
> I don't much like this as an approach - it would be nicer to put
> it into the tests/testutil.c file where we already call the 
> virThreadInitialize & virErrorInitialize functions
> 

I've sent a new patch to address this.

Thanks,
Cole


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]