summaryrefslogtreecommitdiff
path: root/libcnary
diff options
context:
space:
mode:
authorNikias Bassen <nikias@gmx.li>2023-02-05 13:42:23 +0100
committerNikias Bassen <nikias@gmx.li>2023-02-05 13:42:23 +0100
commit52826a6c229ed3e353d4dae711a6c52a96d99764 (patch)
treebbff0a7bbea4e62f7646174ee245e5950b4b0d30 /libcnary
parent706771e357570d1bee268fc7c2233506da967bcd (diff)
downloadlibplist-52826a6c229ed3e353d4dae711a6c52a96d99764.tar.gz
Fix plist_sort() by swapping the nodes in the tree instead of their data
The problem was that we swapped potential child node data between nodes, but their parents would not be updated that way, leading to double frees or segmentation faults when freeing a plist. This commit instead fixes this by swapping the actual nodes in the tree.
Diffstat (limited to 'libcnary')
0 files changed, 0 insertions, 0 deletions