HomeClusterLabs Projects

Fix: pengine: avoid use-after-free with location constraint + sets + templates

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

Fix: pengine: avoid use-after-free with location constraint + sets + templates

Previously, rsc2node_new() assumed id would be persistent, but when a location
constraint involves a resource set referencing a template, unpack_location()
will use a copy of the XML and free it afterward. Now, it makes a copy of id,
and pe_free_rsc_to_node() will free that copy when appropriate.

Details

Provenance
kgaillotAuthored on Jun 9 2016, 2:58 PM

Event Timeline

Commit No Longer Exists

This commit no longer exists in the repository.