Found by 'make -C tests valgrind'.
xen_xm.c: Dummy allocation via virDomainChrDefNew is directly
overwritten and lost. Free 'script' in success path too.
vmx.c: Free virtualDev_string in success path too.
domain_conf.c: Free compression in success path too.
---
src/conf/domain_conf.c |1 +
2011/4/23 Eric Blake :
> On 04/22/2011 12:21 PM, Christophe Fergeau wrote:
>> There were recently some bugs where VIR_FREE was called with an
>> int parameter. Try to affect the value passed to VIR_FREE to
>> a const void* so that the compiler gets a chance to emit a warning
>> if we didn't pass a
2011/4/23 Eric Blake :
> mingw lacks the counterpart to PTHREAD_MUTEX_INITIALIZER, so the
> best we can do is portably expose once-only runtime initialization.
>
> * src/util/threads.h (virOnceControlPtr): New opaque type.
> (virOnceFunc): New callback type.
> (virOnce): New prototype.
> * src/util
Suggested by Daniel P. Berrange
---
src/conf/nwfilter_conf.c |5 +
src/conf/storage_conf.c |7 +--
src/util/util.c |2 ++
src/xen/xen_inotify.c|1 -
src/xen/xm_internal.c|5 +
5 files changed, 5 insertions(+), 15 deletions(-)
diff --git a/src/conf
2011/4/22 Eric Blake :
> On 04/10/2011 07:39 AM, Matthias Bolte wrote:
>> ---
>> src/esx/esx_driver.c | 4 +-
>> src/esx/esx_vi.c | 348
>> ++
>> src/esx/esx_vi.h | 29 +++-
>> 3 files changed, 205 insertions(+), 176 deletions(-)
>>
>>
---
daemon/remote_generator.pl| 63 +++---
src/remote/remote_client_bodies.c | 257 ++-
src/remote/remote_driver.c| 266 -
3 files changed, 296 insertions(+), 290 deletions(-)
diff --git a/daemon/remote_ge
This adds length checks to all affected functions.
---
daemon/remote_generator.pl| 49 ++--
src/remote/remote_client_bodies.c | 267 ++---
src/remote/remote_driver.c| 227 ---
3 files changed, 287 insertions(+), 25
Once again rename members in the XDR definitions to avoid special case
code in the generator.
---
daemon/remote.c | 334 ---
daemon/remote_dispatch_bodies.c | 322 -
daemon/remote_generator.pl | 80 +++
---
daemon/remote.c | 701 ---
daemon/remote_dispatch_bodies.c | 681 +-
daemon/remote_generator.pl | 111 +-
3 files changed, 758 insertions(+), 735 deletions(-)
diff --git a/daemon/remote.c b/dae
---
daemon/remote_generator.pl | 168 +---
1 files changed, 18 insertions(+), 150 deletions(-)
diff --git a/daemon/remote_generator.pl b/daemon/remote_generator.pl
index e9a60bc..585cf67 100755
--- a/daemon/remote_generator.pl
+++ b/daemon/remote_generator
Add generic versions of the open and close functions and call them.
---
src/remote/remote_driver.c | 347 +++-
1 files changed, 51 insertions(+), 296 deletions(-)
diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
index 8dc71d6..777a7bf 1
Again this will simplify the generator, due to less special case handling.
---
daemon/remote.c | 64 +-
daemon/remote_dispatch_bodies.c | 64 +-
daemon/remote_dispatch_prototypes.h | 64 +-
daemon/remote_dispatch_table.h
They require additional special cases.
---
daemon/remote.c | 64 ---
daemon/remote_dispatch_bodies.c | 62 --
daemon/remote_dispatch_prototypes.h |6 ++--
daemon/remote_dispatch_table.h | 12 +++-
---
daemon/remote_generator.pl| 44 -
src/remote/remote_client_bodies.c | 129 +++--
src/remote/remote_driver.c| 128
3 files changed, 152 insertions(+), 149 deletions(-)
diff --git a/daemon/remot
This simplifies the remote protocol code generator.
Also rename 'ret' to 'result' to resolve a naming conflict in the
generator.
---
daemon/remote.c | 22 +++---
daemon/remote_dispatch_bodies.c |4 ++--
daemon/remote_generator.pl |2 +-
src/remote/qe
---
daemon/remote_generator.pl | 54 ---
1 files changed, 30 insertions(+), 24 deletions(-)
diff --git a/daemon/remote_generator.pl b/daemon/remote_generator.pl
index 1aaeaae..9fa3caa 100755
--- a/daemon/remote_generator.pl
+++ b/daemon/remote_generator.p
Avoids special case handling in the remote generator.
---
daemon/remote.c |8
src/remote/remote_driver.c | 12 ++--
src/remote/remote_protocol.c |2 +-
src/remote/remote_protocol.h |2 +-
src/remote/remote_protocol.x |2 +-
src/remote_protocol-stru
---
daemon/remote.c | 130 -
daemon/remote_dispatch_bodies.c | 136 +-
daemon/remote_generator.pl | 21 +--
3 files changed, 148 insertions(+), 139 deletions(-)
diff --git a/daemon/remote.c b/daem
No functional change included, just a whitespace change.
---
daemon/Makefile.am | 34 +++---
daemon/qemu_dispatch_args.h |2 +-
daemon/qemu_dispatch_prototypes.h |2 +-
daemon/qemu_dispatch_ret.h |2 +-
daemon/qemu_dispatch_table.h|2 +-
---
daemon/remote_dispatch_bodies.c | 66 +++---
daemon/remote_generator.pl | 28 ++--
2 files changed, 50 insertions(+), 44 deletions(-)
diff --git a/daemon/remote_dispatch_bodies.c b/daemon/remote_dispatch_bodies.c
index 89f0bc4..50432f9 1006
Richard W.M. Jones suggested [1] that the code that directly deals with the
XDR protocol should be generated. The remote_generate_stubs.pl script
already generates all the headers, just the bodies in the daemon and remote
driver are manually written. But most of the functions just follow simple
pat
Hi,
otherwise the directory returned by networkDnsmasqLeaseFileName will not
be created if ipdef->nhosts == 0 in networkBuildDnsmasqArgv.
O.k. to apply?
Cheers,
-- Guido
---
src/network/bridge_driver.c |7 +++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/network/
22 matches
Mail list logo