Re: [PATCH] branch: fix segfault when resolving an invalid HEAD
From: Jonas Fonseca <hidden> Date: 2016-06-15 22:43:11
On 5/20/07, Jonas Fonseca [off-list ref] 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