File pacemaker-libcrmcommon-filename-not-NULL-before-opening.patch of Package pacemaker.14737
commit bf5abe5a3ecc3e0e10242328d6f3a141ce3a2682
Author: Ken Gaillot <kgaillot@redhat.com>
Date: Thu Jan 19 10:13:50 2017 -0600
Low: libcrmcommon: ensure filename is not NULL before opening
unlikely, but makes coverity happy
Index: pacemaker/lib/common/xml.c
===================================================================
--- pacemaker.orig/lib/common/xml.c
+++ pacemaker/lib/common/xml.c
@@ -5470,6 +5470,8 @@ validate_xml_verbose(xmlNode * xml_blob)
gboolean rc = FALSE;
char *filename = strdup(CRM_STATE_DIR "/cib-invalid.XXXXXX");
+ CRM_CHECK(filename != NULL, return FALSE);
+
umask(S_IWGRP | S_IWOTH | S_IROTH);
fd = mkstemp(filename);
write_xml_fd(xml_blob, filename, fd, FALSE);