mirror of
https://github.com/git/git.git
synced 2024-11-01 23:07:55 +01:00
Merge branch 'rf/maint-mailmap-off-by-one'
* rf/maint-mailmap-off-by-one: mailmap: avoid out-of-bounds memory access
This commit is contained in:
commit
0169320374
1 changed files with 1 additions and 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);
|
||||
|
|
Loading…
Reference in a new issue