Re: [PATCH 1/7] conf: Add error checking to virDomainSnapshotDiskDefFormat

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 17, 2018 at 12:22:12 -0400, John Ferlan wrote:
> Commit id '43f2ccdc' called virDomainDiskSourceDefFormatInternal
> rather than formatting the the disk source inline. However, it
> did not handle the case where the helper failed. Over time the
> helper has been renamed to virDomainDiskSourceFormat. Similar to
> other consumers, if virDomainDiskSourceFormat fails, then the
> formatting could be off, so it's better to fail than to continue
> on with some possibly bad data. Alter the function and the caller
> to check status and jump to error in that case.
> 
> Found by Coverity
> 
> Signed-off-by: John Ferlan <jferlan@xxxxxxxxxx>
> ---
>  src/conf/snapshot_conf.c | 16 ++++++++++------
>  1 file changed, 10 insertions(+), 6 deletions(-)

ACK

Attachment: signature.asc
Description: PGP signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux