From: Stefan Sperling Subject: Re: plug memory leak in got_pack_dump_delt_chain_to_file() To: "Todd C. Miller" Cc: Omar Polo , gameoftrees@openbsd.org Date: Tue, 13 Feb 2024 20:55:50 +0100 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.