]> xenbits.xensource.com Git - libvirt.git/commitdiff
* src/xend_internal.c: applied patch from Masayuki Sunou to avoid
authorDaniel Veillard <veillard@redhat.com>
Mon, 27 Aug 2007 09:31:31 +0000 (09:31 +0000)
committerDaniel Veillard <veillard@redhat.com>
Mon, 27 Aug 2007 09:31:31 +0000 (09:31 +0000)
  memory corruption on very large XML dumps.
Daniel

ChangeLog
NEWS
src/xend_internal.c

index 93b0026a4ea43c9cd988fd392478ff351cf66b2b..db321d235d6aa116485d6c0aaa11534b66864b78 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Aug 27 11:16:48 CEST 2007 Daniel Veillard <veillard@redhat.com>
+
+       * src/xend_internal.c: applied patch from Masayuki Sunou to avoid
+         memory corruption on very large XML dumps.
+
 Tue Aug 21 16:48:41 CEST 2007 Daniel Veillard <veillard@redhat.com>
 
        * configure.in libvirt.spec.in include/libvirt/libvirt.h docs/*:
diff --git a/NEWS b/NEWS
index 1a846d1f81991304d42ecb855778f66147fa9918..81f383d1d1a7b9c71299c7609dd60bca7d4421fa 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,34 @@
        http://libvirt.org/news.html
 
 Releases
+0.3.2: Aug 21 2007:
+   - New features: KVM migration and save/restore (Jim Paris), 
+      added API for migration (Richard Jones), added APIs for block device and
+      interface statistic (Richard Jones).
+   - Documentation: examples for XML network APIs,
+      fix typo and schedinfo synopsis in man page (Atsushi SAKAI),
+      hypervisor support page update (Richard Jones).
+   - Bug fixes: remove a couple of leaks in QEmu/KVM backend(Daniel berrange),
+      fix GnuTLS 1.0 compatibility (Richard Jones), --config/-f option
+      mistake for libvirtd (Richard Jones), remove leak in QEmu backend
+      (Jim Paris), fix some QEmu communication bugs (Jim Paris), UUID
+      lookup though proxy fix, setvcpus checking bugs (with Atsushi SAKAI),
+      int checking in virsh parameters (with Masayuki Sunou), deny devices
+      attach/detach for < Xen 3.0.4 (Masayuki Sunou), XenStore query
+      memory leak (Masayuki Sunou), virsh schedinfo cleanup (Saori Fukuta).
+   - Improvement: virsh new ttyconsole command, networking API implementation
+      for test driver (Daniel berrange), qemu/kvm feature reporting of
+      ACPI/APIC (David Lutterkort), checking of QEmu architectures (Daniel
+      berrange), improve devices XML errors reporting (Masayuki Sunou),
+      speedup of domain queries on Xen (Daniel berrange), augment XML dumps
+      with interface devices names (Richard Jones), internal API to query
+      drivers for features (Richard Jones).
+      
+   - Cleanups: Improve virNodeGetInfo implentation (Daniel berrange),
+      general UUID code cleanup (Daniel berrange), fix API generator
+      file selection. 
+
+
 0.3.1: Jul 24 2007:
    - Documentation: index to remote page, script to test certificates,
       IPv6 remote support docs (Daniel Berrange), document
index 5a1b09f2313c267509bca427bfe7e33a05e5c698..0bd42a700f6516db68e0604d320b716de8ea5430 100644 (file)
@@ -1346,7 +1346,6 @@ xend_parse_sexp_desc_os(virConnectPtr xend, struct sexpr *node, virBufferPtr buf
 static char *
 xend_parse_sexp_desc(virConnectPtr conn, struct sexpr *root, int xendConfigVersion)
 {
-    char *ret;
     struct sexpr *cur, *node;
     const char *tmp;
     char *tty;
@@ -1362,10 +1361,9 @@ xend_parse_sexp_desc(virConnectPtr conn, struct sexpr *root, int xendConfigVersi
         /* ERROR */
         return (NULL);
     }
-    ret = malloc(4000);
-    if (ret == NULL)
+    buf.content = malloc(4000);
+    if (buf.content == NULL)
         return (NULL);
-    buf.content = ret;
     buf.size = 4000;
     buf.use = 0;
 
@@ -1762,11 +1760,11 @@ xend_parse_sexp_desc(virConnectPtr conn, struct sexpr *root, int xendConfigVersi
     virBufferAdd(&buf, "</domain>\n", 10);
 
     buf.content[buf.use] = 0;
-    return (ret);
+    return (buf.content);
 
   error:
-    if (ret != NULL)
-        free(ret);
+    if (buf.content != NULL)
+        free(buf.content);
     return (NULL);
 }