"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Stefan Sperling <stsp@stsp.name>
Subject:
Re: fix double-free and removal of missing locally-added files
To:
gameoftrees@openbsd.org
Date:
Wed, 23 Aug 2023 22:26:04 +0200

Download raw body.

Thread
On Wed, Aug 23, 2023 at 10:22:49PM +0200, Stefan Sperling wrote:
> gonzalo found a double-free crash in 'got commit' and provided
> a test case to trigger it. This crash occurs in free_commitable()
> via got_worktree_commit() when it frees ct->path a second time,
> after append_ct_diff() has already freed the same variable.

Oops, I meant collect_commitables() above, not append_ct_diff().