Commit f0dd6e11aa56addced3de33fab30529a51efaed5

Tristan Van Berkom 2014-04-22T21:15:05

xmlNodeSetName: Allow setting the name to a substring of the currently set name Avoid freeing the currently set name until after having assigned the new name, this allows one to call xmlNodeSetName (node, node->name + 1) to set the new name of the node to a substring of the current name without introducing any crash and without requiring an extra strdup().