fix a use-after-free in get_changed_paths() in got and tog
commitaa8b5dd032c8cba930e5be67a90069a95e0001b8
authorStefan Sperling <stsp@stsp.name>
Sun, 1 Aug 2021 12:59:32 +0000 (1 12:59 +0000)
committerStefan Sperling <stsp@stsp.name>
Sun, 1 Aug 2021 12:59:32 +0000 (1 12:59 +0000)
tree6d6782069a895bae6e3c94c6965ee27bb62e7cfd
parent267bb3b89907b99d17aece9890a57afe2982b782
fix a use-after-free in get_changed_paths() in got and tog

Once the parent commit is closed the tree_id1 pointer is no longer valid,
but the pointer was still being used. Make a deep copy to fix this issue.
got/got.c
tog/tog.c