1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-02-03 17:47:15 +03:00
Mattias Bolte 1aa1683377 Power Hypervisor: fix potential segfault
I came across this line in the phypOpen function:

char string[strlen(conn->uri->path)];

Here the path part of the given URI is used without checking it for
NULL, this can cause a segfault as strlen expects a string != NULL.
Beside that uuid_db and connection_data leak in case of an error.

In this line

conn->uri->path = string;

the original path of the URI leaks. The patch adds a VIR_FREE call
before setting the new path.

The attached patch is compile-tested but I don't have a Power
Hypervisor installation at hand to test it for real.

Matthias

Signed-off-by: Chris Lalancette <clalance@redhat.com>
2009-08-20 12:53:17 +02:00
2009-07-16 15:06:42 +02:00
2009-08-05 16:00:41 +02:00
2009-07-08 16:17:51 +02:00
2009-07-08 16:17:51 +02:00
2009-07-08 16:17:51 +02:00
2009-07-08 16:17:51 +02:00
2009-06-16 14:06:48 +00:00
2009-07-16 15:06:42 +02:00
2009-07-23 22:31:13 +02:00
2009-07-09 09:32:21 +02:00
2009-08-05 16:00:41 +02:00
2009-07-16 15:06:42 +02:00
2009-07-23 16:07:32 +01:00
2009-08-05 16:00:41 +02:00
2008-12-12 12:45:34 +00:00
2009-08-11 15:39:28 +01:00

         LibVirt : simple API for virtualization

  Libvirt is a C toolkit to interact with the virtualization capabilities
of recent versions of Linux (and other OSes). It is free software
available under the GNU Lesser General Public License. Virtualization of
the Linux Operating System means the ability to run multiple instances of
Operating Systems concurrently on a single hardware system where the basic
resources are driven by a Linux instance. The library aim at providing
long term stable C API initially for the Xen paravirtualization but
should be able to integrate other virtualization mechanisms if needed.

Daniel Veillard <veillard@redhat.com>
Description
Libvirt native C API and daemons
Readme 672 MiB
Languages
C 94.8%
Python 2%
Meson 0.9%
Shell 0.8%
Dockerfile 0.6%
Other 0.8%