libvirt/daemon
Jiri Denemark 6039a2cb49 daemon: Fix crash in virTypedParameterArrayClear
Daemon uses the following pattern when dispatching APIs with typed
parameters:

    VIR_ALLOC_N(params, nparams);
    virDomain*(dom, params, &nparams, flags);
    virTypedParameterArrayClear(params, nparams);

In case nparams was originally set to 0, virDomain* API would fill it
with the number of typed parameters it can provide and we would use this
number (rather than zero) to clear params. Because VIR_ALLOC* returns
non-NULL pointer even if size is 0, the code would end up walking
through random memory. If we were lucky enough and the memory contained
7 (VIR_TYPED_PARAM_STRING) at the right place, we would try to free a
random pointer and crash.

Let's make sure params stays NULL when nparams is 0.
2012-07-30 19:45:12 +02:00
..
libvirtd-config.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
libvirtd-config.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
libvirtd.aug Fix mistakes in augeas lens 2012-05-28 11:00:01 +01:00
libvirtd.c daemon: Fix the wrong macro name 2012-07-24 15:45:20 -06:00
libvirtd.conf Standardize whitespace used in example config files 2012-05-28 10:59:13 +01:00
libvirtd.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
libvirtd.init.in daemon: Remove deprecated HAL from init script dependencies 2012-03-02 16:32:37 +01:00
libvirtd.logrotate.in Add logrotate support for libvirtd.log 2011-03-04 22:43:55 +08:00
libvirtd.lxc.logrotate.in Change logrotate to be per-hypervisor logs 2010-03-10 11:27:02 +01:00
libvirtd.pod.in doc: add more description on libvirtd option timeout 2012-07-26 15:30:26 +08:00
libvirtd.policy-0 Allow polkit auth for VNC and SSH users 2012-02-07 11:59:35 -05:00
libvirtd.policy-1 Allow polkit auth for VNC and SSH users 2012-02-07 11:59:35 -05:00
libvirtd.qemu.logrotate.in Change logrotate to be per-hypervisor logs 2010-03-10 11:27:02 +01:00
libvirtd.sasl Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
libvirtd.service.in systemd: start libvirtd after network 2012-07-10 08:53:40 -06:00
libvirtd.sysconf daemon: Allow overriding NOFILES ulimit for the daemon as well 2012-02-01 16:04:30 +01:00
libvirtd.sysctl init: raise default system aio limits 2011-10-05 14:49:35 -06:00
libvirtd.uml.logrotate.in Change logrotate to be per-hypervisor logs 2010-03-10 11:27:02 +01:00
libvirtd.upstart daemon: Allow overriding NOFILES ulimit for the daemon as well 2012-02-01 16:04:30 +01:00
Makefile.am Make RPC code generator a little more flexible 2012-07-30 12:50:23 +01:00
remote.c daemon: Fix crash in virTypedParameterArrayClear 2012-07-30 19:45:12 +02:00
remote.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
stream.c Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
stream.h Desert the FSF address in copyright 2012-07-23 10:50:50 +08:00
test_libvirtd.aug.in Autogenerate augeas test case from default config files 2012-05-28 11:07:12 +01:00
THREADS.txt maint: use consistent file name for threading notes 2011-05-31 13:54:45 -06:00