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

From:
Stefan Sperling <stsp@stsp.name>
Subject:
Re: plug memory leak in got_pack_dump_delt_chain_to_file()
To:
"Todd C. Miller" <millert@openbsd.org>
Cc:
Omar Polo <op@omarpolo.com>, gameoftrees@openbsd.org
Date:
Tue, 13 Feb 2024 20:55:50 +0100

Download raw body.

Thread
On Tue, Feb 13, 2024 at 12:51:44PM -0700, Todd C. Miller wrote:
> Won't this cause the uninitialized contents of accum_buf to be
> written out?  I think this can happen for other error paths as well.

I don't think so because accum_size will be 0 while nothing is
in the buffer.