Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP3:GA
pacemaker.13547
pacemaker-libcrmcommon-filename-not-NULL-before...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pacemaker-libcrmcommon-filename-not-NULL-before-opening.patch of Package pacemaker.13547
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);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor