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

From:
Stefan Sperling <stsp@stsp.name>
Subject:
Re: tog tree double free
To:
Christian Weisgerber <naddy@mips.inka.de>
Cc:
gameoftrees@openbsd.org
Date:
Sun, 11 Jul 2021 00:49:46 +0200

Download raw body.

Thread
On Sat, Jul 10, 2021 at 10:20:44PM +0200, Christian Weisgerber wrote:
> Stefan Sperling:
> 
> > I think it makes more sense to give control over the allocation to the
> > open_tree_view() function, implying that the deallocation should only
> > occur in close_tree_view(). This fixes the double-tree you've described.
> 
> Makes sense.
> 
> > Can you still get tog to misbehave with this patch?
> 
> That fixes the problem and I haven't found any new ones.
> 
> There's some cruft left over that you forgot:

Thanks! I've just committed both patches.