summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuan Qiang <hzguanqiang@corp.netease.com>2013-08-29 19:02:25 +0800
committerEric Blake <eblake@redhat.com>2013-08-29 06:52:56 -0600
commitbf69603b2453f456fb975be6a42d34ad53860b4b (patch)
tree0922a67463531d438d02a37de0b9f7ff4a92b01a
parent1f01027098786ad96ddccdf6e6a076b917cce77f (diff)
downloadlibvirt-python-split-bf69603b2453f456fb975be6a42d34ad53860b4b.zip
libvirt-python-split-bf69603b2453f456fb975be6a42d34ad53860b4b.tar.gz
libvirt-python-split-bf69603b2453f456fb975be6a42d34ad53860b4b.tar.xz
python: Fix a PyList usage mistakev1.1.2-rc2v1.1.2CVE-2013-4292CVE-2013-4291
Fix PyList usage mistake in Function libvirt_lxc_virDomainLxcOpenNamespace. https://bugzilla.redhat.com/show_bug.cgi?id=1002383 Signed-off-by: Eric Blake <eblake@redhat.com>
-rw-r--r--libvirt-lxc-override.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvirt-lxc-override.c b/libvirt-lxc-override.c
index 73685df..fa7e963 100644
--- a/libvirt-lxc-override.c
+++ b/libvirt-lxc-override.c
@@ -80,7 +80,7 @@ libvirt_lxc_virDomainLxcOpenNamespace(PyObject *self ATTRIBUTE_UNUSED,
if (c_retval < 0)
return VIR_PY_NONE;
- py_retval = PyList_New(c_retval);
+ py_retval = PyList_New(0);
for (i = 0; i < c_retval; i++) {
PyObject *item = NULL;