Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15:Update
pacemaker.15719
bsc#1127716-0002-Fix-libcrmcommon-avoid-possibl...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bsc#1127716-0002-Fix-libcrmcommon-avoid-possible-use-of-NULL-when-app.patch of Package pacemaker.15719
From f8d008d8d3a29900ee0c6decbb71a243fa4c2d8c Mon Sep 17 00:00:00 2001 From: "Gao,Yan" <ygao@suse.com> Date: Tue, 30 Apr 2019 00:15:03 +0200 Subject: [PATCH 2/3] Fix: libcrmcommon: avoid possible use-of-NULL when applying XML diffs --- lib/common/xml.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/common/xml.c b/lib/common/xml.c index d815a4816..fe87de66c 100644 --- a/lib/common/xml.c +++ b/lib/common/xml.c @@ -1506,11 +1506,12 @@ xml_apply_patchset_v2(xmlNode *xml, xmlNode *patchset) const char *xpath = crm_element_value(change, XML_DIFF_PATH); int position = -1; - crm_trace("Processing %s %s", change->name, op); if(op == NULL) { continue; } + crm_trace("Processing %s %s", change->name, op); + // "delete" changes for XML comments are generated with "position" if(strcmp(op, "delete") == 0) { crm_element_value_int(change, XML_DIFF_POSITION, &position); -- 2.16.4
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