HomeClusterLabs Projects

Fix: cib: Prevent use-after-free when invoking "cibadmin --delete-all --xpath"

Description

Fix: cib: Prevent use-after-free when invoking "cibadmin --delete-all --xpath"

An xpath like "//*[contains(@id,'rsc1')]" or a bad xpath can match xml
nodes that have parent-child relationships among them. That would cause
use-after-free when invoking "cibadmin --delete-all --xpath" with it.

This commit deduplicates xml nodes from xpathObj->nodesetval->nodeTab
as long as any of their parents are also in there.

Details

Provenance
gao-yanAuthored on Jun 18 2015, 8:30 AM
Parents
rP7217e08a5657: Log: crmd: Some entries can just go to the application logfile
Branches
Unknown
Tags
Unknown

Event Timeline