[libvirt] [PATCH] conf: Fix possible NULL dereference in virStorageVolTargetDefFormat

2014-07-11 Thread Matthias Bolte
Commit dae1568c6c6455091e8cd9bc2e90a22af3d3880c converted the perms member of the virStorageVolTarget struct into a pointer to make it optional. But virStorageVolTargetDefFormat did not check perms for NULL before dereferencing it. --- src/conf/storage_conf.c | 26 ++ 1

Re: [libvirt] [PATCH] conf: Fix possible NULL dereference in virStorageVolTargetDefFormat

2014-07-11 Thread Eric Blake
On 07/11/2014 10:13 AM, Matthias Bolte wrote: Commit dae1568c6c6455091e8cd9bc2e90a22af3d3880c converted the perms member of the virStorageVolTarget struct into a pointer to make it optional. But virStorageVolTargetDefFormat did not check perms for NULL before dereferencing it. ---

Re: [libvirt] [PATCH] conf: Fix possible NULL dereference in virStorageVolTargetDefFormat

2014-07-11 Thread Eric Blake
On 07/11/2014 11:00 AM, Eric Blake wrote: On 07/11/2014 10:13 AM, Matthias Bolte wrote: Commit dae1568c6c6455091e8cd9bc2e90a22af3d3880c converted the perms member of the virStorageVolTarget struct into a pointer to make it optional. But virStorageVolTargetDefFormat did not check perms for