[libvirt] [PATCH] util: Make sure random data is initialized when in virRandom
Daniel P. Berrange
berrange at redhat.com
Tue Oct 13 13:22:42 UTC 2009
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
Daniel
--
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
More information about the libvir-list
mailing list