[PATCH 00/11] Resolution to various Coverity warnings

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

 



I upgraded to a new version of Coverity last night (6.5.1) since I was
informed it resolved the BAD_SIZEOF errors from the TRACE macros. A majority 
were resolved, except for 3 which just required a couple of changes to avoid.

Since I was down to only a few warnings I tried ratcheting up the
analysis "aggressiveness-level" from the default of low to medium
and high. There many false positives out of those, but I did manage
to find a few more leaks and a missing error check in openvz_driver.c.

After this series only a couple of warnings exist in the tests area;
however, I've seen IRC chatter on vircommand.c and commandtest.c, so
I'll patiently wait on that. There are some warnings in a couple of
gnulib modules as well as /usr/include/bits/stdio2.h.

John Ferlan (11):
  tlscontext: Make sure to get proper pointer to name
  keepalive: Resolve Coverity complaint
  storage: Resolve resource leaks with cmd processing
  network: Remove conditional settings to resolve resource leak
  parallels: Need to free memory on error path
  openvz: Need to error check openvzDomainSetVcpusFlagsInternal()
  uml: If need to requery, then VIR_FREE(res)
  rpc: Need to virCommandFree on error path
  lxc: Need to call usbFreeDevice()
  qemu_cgroup: Need to call usbFreeDevice()
  qemu_hotplug: Need to call usbFreeDevice()

 src/lxc/lxc_cgroup.c               |  8 +++++---
 src/network/bridge_driver.c        |  9 +++------
 src/openvz/openvz_driver.c         |  9 +++++++--
 src/parallels/parallels_utils.c    |  4 +++-
 src/qemu/qemu_cgroup.c             |  6 ++++--
 src/qemu/qemu_hotplug.c            |  7 +++++--
 src/rpc/virkeepalive.c             | 14 +++++++-------
 src/rpc/virnetsocket.c             |  1 +
 src/rpc/virnettlscontext.c         |  8 +++++---
 src/storage/storage_backend_disk.c | 28 +++++++++++++++-------------
 src/uml/uml_driver.c               |  3 ++-
 11 files changed, 57 insertions(+), 40 deletions(-)

-- 
1.7.11.7

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