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

[libvirt] [PATCH 00/23] Fix yet more OOM errors



From: "Daniel P. Berrange" <berrange redhat com>

A nice mix of leaks and crashes and ignoring errors.

Daniel P. Berrange (23):
  Fix crash on OOM in xenParseSxpr
  Fix handling of OOM when getting Xen dom ID
  Don't clobber return value in virInterfaceDefParseProtoIPv6
  Fix crash on OOM in virDomainSnapshotDefParse
  Don't clobber 'ret' in LXC XML test case
  Fix double free of hostdev on OOM in xenParseSxprPCI
  Fix crash on OOM parsing storage pool XML
  Add missing check for OOM with virVMXEscapeHexPipe
  Fix leak of comment string if virConfAddEntry fails on OOM
  Don't print all test suite errors to stderr in vmx2xmltest
  Fix leak of iterators in virDBusMessageIterEncode
  Fix double-free in virJSONParserHandleStartMap on OOM
  Fix leak of parser state in virJSONValueFromString
  Fix leak in virLockSpaceResourceFree
  Don't ignore errors parsing nwfilter rules
  Fix leak on OOM in qemuMonitorCommonTestNew
  Avoid double free in qemuMonitorCommonTestInit on OOM
  Avoid uninitialized data in qemuMonitorTestNew
  Avoid crash on OOM in virbuftest
  Avoid crash on OOM in virlockspacetest
  Avoid crash on OOM in virportallocatortest
  Avoid crash on OOM in virnetmessagetest
  Avoid use of uninitialized data in virnetmessagetest

 src/conf/interface_conf.c    | 16 ++++++--------
 src/conf/nwfilter_conf.c     | 16 +++++++-------
 src/conf/snapshot_conf.c     |  4 ++--
 src/conf/storage_conf.c      |  6 +++---
 src/util/virconf.c           |  5 ++++-
 src/util/virdbus.c           | 24 ++++++++++++++++++---
 src/util/virjson.c           |  2 +-
 src/util/virlockspace.c      |  1 +
 src/vmx/vmx.c                |  3 ++-
 src/xen/xen_driver.c         |  3 ++-
 src/xen/xend_internal.c      | 10 +++++----
 src/xenxs/xen_sxpr.c         | 23 ++++++++++----------
 src/xenxs/xen_sxpr.h         |  4 ++--
 tests/lxcxml2xmltest.c       | 13 +++++++----
 tests/nwfilterxml2xmltest.c  | 14 ++++++------
 tests/qemumonitortestutils.c |  7 +++++-
 tests/sexpr2xmltest.c        |  3 ++-
 tests/virbuftest.c           | 14 ++++++++++++
 tests/virlockspacetest.c     | 21 ++++++++++++------
 tests/virnetmessagetest.c    |  9 +++++++-
 tests/virportallocatortest.c |  6 ++++++
 tests/vmx2xmltest.c          | 51 +++++++++++++++++---------------------------
 22 files changed, 154 insertions(+), 101 deletions(-)

-- 
1.8.3.1


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