summaryrefslogtreecommitdiff
path: root/builtin-checkout-index.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2006-12-09 04:04:21 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-12-09 04:11:21 (GMT)
commit90ffefe564cd849f88b1d1b5817eb25e3d57521b (patch)
treec5ef861d53feab8f9c4cb1a1c6ff0c6e7a967d40 /builtin-checkout-index.c
parent62b339a544b1fa5199de7571c460d770cb286e65 (diff)
downloadgit-90ffefe564cd849f88b1d1b5817eb25e3d57521b.zip
git-90ffefe564cd849f88b1d1b5817eb25e3d57521b.tar.gz
git-90ffefe564cd849f88b1d1b5817eb25e3d57521b.tar.bz2
shortlog: fix segfault on empty authorname
The old code looked backwards from the email address to parse the name, allowing an arbitrary number of spaces between the two. However, in the case of no name, we looked back too far to the 'author' (or 'Author:') header. Instead, remove at most one space between name and address. The bug was triggered by commit febf7ea4bed from linux-2.6. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-checkout-index.c')
0 files changed, 0 insertions, 0 deletions