From: Jonas Fonseca Date: Sun, 20 May 2007 12:44:47 GMT Subject: Re: [PATCH] branch: fix segfault when resolving an invalid HEAD Message-ID: <2c6b72b30705200544g2f9cb67eod5ea9342c3fda2a5@mail.gmail.com> In-Reply-To: <20070520121917.GA18850@diku.dk> On 5/20/07, Jonas Fonseca wrote: > Caused by return value of resolve_ref being passed directly > to xstrdup whereby the sanity checking was never reached. While checking other usage of resolve_ref, this problem also occurs in builtin-show-branch.c around line 695, however, the logic later in the file seems to be more forgiving so I have no idea of how to patch it. -- Jonas Fonseca