diff options
| author | Junio C Hamano <gitster@pobox.com> | 2012-11-20 10:14:28 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2012-11-20 10:14:29 -0800 |
| commit | e87719fc944f8a9961ba9c371c485efe54dd08b5 (patch) | |
| tree | 9dea82cfcd86dfa5e761fb7f065af088e53b3dac | |
| parent | Merge branch 'jk/maint-diff-grep-textconv' into maint (diff) | |
| parent | mailmap: avoid out-of-bounds memory access (diff) | |
| download | git-e87719fc944f8a9961ba9c371c485efe54dd08b5.tar.gz git-e87719fc944f8a9961ba9c371c485efe54dd08b5.zip | |
Merge branch 'rf/maint-mailmap-off-by-one' into maint
* rf/maint-mailmap-off-by-one:
mailmap: avoid out-of-bounds memory access
| -rw-r--r-- | mailmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -118,7 +118,7 @@ static char *parse_name_and_email(char *buffer, char **name, while (isspace(*nstart) && nstart < left) ++nstart; nend = left-1; - while (isspace(*nend) && nend > nstart) + while (nend > nstart && isspace(*nend)) --nend; *name = (nstart < nend ? nstart : NULL); |
