From: Eric Sunshine Date: Mon, 09 Feb 2015 23:42:25 GMT Subject: Re: [PATCH] builtin/blame: destroy initialized commit_info only Message-ID: In-Reply-To: On Mon, Feb 9, 2015 at 4:33 PM, Eric Sunshine wrote: > On Mon, Feb 9, 2015 at 4:28 PM, Eric Sunshine wrote: >> Since ea02ffa3 (mailmap: simplify map_user() interface, 2013-01-05), >> find_alignment() has been invoking commit_info_destroy() on an >> uninitialized auto 'struct commit_info' (when METAINFO_SHOWN is not >> set). commit_info_destroy() calls strbuf_release() for each of > > s/each of/each/ > > ...despite several proof-reads (sigh). > >> 'commit_info' strbuf member, which randomly invokes free() on whatever >> random stack value happens to be reside in strbuf.buf, thus leading to s/to be/to/ (sigh again) >> periodic crashes. >> >> Reported-by: Dilyan Palauzov >> Signed-off-by: Eric Sunshine