diff options
author | Jeff King <peff@peff.net> | 2012-11-04 08:00:23 -0500 |
---|---|---|
committer | Jeff King <peff@peff.net> | 2012-11-04 08:00:23 -0500 |
commit | 016932037455e92e78da5d9b415ab65356f70e8b (patch) | |
tree | 882efdd1f3886928bf9babe634688cfeee7f4968 | |
parent | 9a806be5dfd6d55b04ee2ed3455702b3d174d31c (diff) | |
parent | 3174bc5ccfea34717a8dac2175c1951239a4985d (diff) | |
download | git-016932037455e92e78da5d9b415ab65356f70e8b.tar.gz |
Merge branch 'rf/maint-mailmap-off-by-one'
* 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); |