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

Cole Robinson crobinso at redhat.com
Fri Oct 16 16:01:14 UTC 2009


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




More information about the libvir-list mailing list