mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
Fix NULL crash & integer overflow
This commit is contained in:
parent
5abce0805b
commit
73bc9c163c
@ -1,3 +1,7 @@
|
||||
Sun Dec 7 20:44:53 GMT 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||
|
||||
* src/test.c: Fix integer long long overflow. Fix NULL defernce
|
||||
|
||||
Sun Dec 7 20:20:53 GMT 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||
|
||||
* src/test.c: Remove bogus refresh call causing deadlock
|
||||
|
@ -191,7 +191,7 @@ static const char *defaultPoolXML =
|
||||
" </target>"
|
||||
"</pool>";
|
||||
|
||||
static const unsigned long long defaultPoolCap = (100 * 1024 * 1024 * 1024ul);
|
||||
static const unsigned long long defaultPoolCap = (100 * 1024 * 1024 * 1024ull);
|
||||
static const unsigned long long defaultPoolAlloc = 0;
|
||||
|
||||
static int testStoragePoolObjSetDefaults(virStoragePoolObjPtr pool);
|
||||
@ -2997,10 +2997,10 @@ testStorageVolumeCreateXML(virStoragePoolPtr pool,
|
||||
privpool->def->allocation);
|
||||
|
||||
privpool->volumes.objs[privpool->volumes.count++] = privvol;
|
||||
privvol = NULL;
|
||||
|
||||
ret = virGetStorageVol(pool->conn, privpool->def->name,
|
||||
privvol->name, privvol->key);
|
||||
privvol = NULL;
|
||||
|
||||
cleanup:
|
||||
virStorageVolDefFree(privvol);
|
||||
|
Loading…
Reference in New Issue
Block a user