render / rpms / libvirt

Forked from rpms/libvirt 10 months ago
Clone
43fe83
From afbd35a816254adcd4a5660a2e9089ee986f9457 Mon Sep 17 00:00:00 2001
43fe83
Message-Id: <afbd35a816254adcd4a5660a2e9089ee986f9457.1379193140.git.jdenemar@redhat.com>
43fe83
From: Michal Privoznik <mprivozn@redhat.com>
43fe83
Date: Thu, 12 Sep 2013 11:37:33 -0600
43fe83
Subject: [PATCH] virFileNBDDeviceAssociate: Avoid use of uninitialized
43fe83
 variable
43fe83
43fe83
CVE-2013-4297: https://bugzilla.redhat.com/show_bug.cgi?id=1006513
43fe83
43fe83
The @qemunbd variable can be used uninitialized.
43fe83
43fe83
(cherry picked from commit 2dba0323ff0cec31bdcea9dd3b2428af297401f2)
43fe83
---
43fe83
 src/util/virfile.c | 2 +-
43fe83
 1 file changed, 1 insertion(+), 1 deletion(-)
43fe83
43fe83
diff --git a/src/util/virfile.c b/src/util/virfile.c
43fe83
index 2b07ac9..7af0843 100644
43fe83
--- a/src/util/virfile.c
43fe83
+++ b/src/util/virfile.c
43fe83
@@ -732,7 +732,7 @@ int virFileNBDDeviceAssociate(const char *file,
43fe83
                               char **dev)
43fe83
 {
43fe83
     char *nbddev;
43fe83
-    char *qemunbd;
43fe83
+    char *qemunbd = NULL;
43fe83
     virCommandPtr cmd = NULL;
43fe83
     int ret = -1;
43fe83
     const char *fmtstr = NULL;
43fe83
-- 
43fe83
1.8.3.2
43fe83