Blame SOURCES/004-null-filename.patch

60de42
From bf5abe5a3ecc3e0e10242328d6f3a141ce3a2682 Mon Sep 17 00:00:00 2001
60de42
From: Ken Gaillot <kgaillot@redhat.com>
60de42
Date: Thu, 19 Jan 2017 10:13:50 -0600
60de42
Subject: [PATCH] Low: libcrmcommon: ensure filename is not NULL before opening
60de42
60de42
unlikely, but makes coverity happy
60de42
---
60de42
 lib/common/schemas.c | 2 ++
60de42
 1 file changed, 2 insertions(+)
60de42
60de42
diff --git a/lib/common/schemas.c b/lib/common/schemas.c
60de42
index b8280b2..f1a0238 100644
60de42
--- a/lib/common/schemas.c
60de42
+++ b/lib/common/schemas.c
60de42
@@ -580,6 +580,8 @@ validate_xml_verbose(xmlNode *xml_blob)
60de42
     gboolean rc = FALSE;
60de42
     char *filename = strdup(CRM_STATE_DIR "/cib-invalid.XXXXXX");
60de42
 
60de42
+    CRM_CHECK(filename != NULL, return FALSE);
60de42
+
60de42
     umask(S_IWGRP | S_IWOTH | S_IROTH);
60de42
     fd = mkstemp(filename);
60de42
     write_xml_fd(xml_blob, filename, fd, FALSE);
60de42
-- 
60de42
1.8.3.1
60de42