mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-11 16:05:56 -06:00
don't dereference uninitialized pointer
* src/storage_conf.c (virStoragePoolDefParsePerms): Initialize "ptr" to NULL.
This commit is contained in:
parent
014bb5cf7e
commit
07696eb347
@ -1,3 +1,9 @@
|
||||
Mon Mar 2 10:16:04 +0100 2009 Jim Meyering <meyering@redhat.com>
|
||||
|
||||
don't dereference uninitialized pointer
|
||||
* src/storage_conf.c (virStoragePoolDefParsePerms): Initialize
|
||||
"ptr" to NULL.
|
||||
|
||||
Fri Feb 27 17:15:00 CET 2009 Chris Lalancette <clalance@redhat.com>
|
||||
|
||||
* src/qemu_driver.c: If there is a failure during offline migrate,
|
||||
|
@ -381,7 +381,7 @@ virStoragePoolDefParsePerms(virConnectPtr conn,
|
||||
if (!mode) {
|
||||
perms->mode = 0700;
|
||||
} else {
|
||||
char *end;
|
||||
char *end = NULL;
|
||||
perms->mode = strtol(mode, &end, 8);
|
||||
if (*end || perms->mode < 0 || perms->mode > 0777) {
|
||||
virStorageReportError(conn, VIR_ERR_XML_ERROR,
|
||||
|
Loading…
Reference in New Issue
Block a user