Re: [PATCH 4/7] virsh-interface: Resolve Coverity issues

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

 



On Thu, Jul 11, 2013 at 08:34:04AM -0400, John Ferlan wrote:
> Recent changes uncovered FORWARD_NULL and NEGATIVE_RETURNS problems with
> the processing of the 'nActiveIfaces' and 'nInactiveIfaces' and their
> associated allocated arrays in 'vshInterfaceListCollect' due to the
> possibility of returning -1 in a call and using the return value as a
> for loop index end condition.

Again, I think it is preferrable to change the for() condition
in the cleanup: label instead. I did that in several other places
in virsh code, but clearly missed this one & a few others.

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

--
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]