提交 73bc9c16 编写于 作者: D Daniel P. Berrange

Fix NULL crash & integer overflow

上级 5abce080
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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册