diff options
| author | Patrick Steinhardt <ps@pks.im> | 2018-10-26 14:54:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-26 14:54:54 +0200 |
| commit | 68e55c3a65c4a3fc5d6991a60214d7f1bfc62427 (patch) | |
| tree | 3cd129b40578ea6c6e822c10860ea0ef0fae233a /src/commit_list.c | |
| parent | 8e0b172981a046d19f1d9efa5acd6186bccbd3ce (diff) | |
| parent | b699817848ce27c149ef561bd491eadfbb1933bf (diff) | |
| download | libgit2-0.27.6.tar.gz | |
Merge pull request #4866 from pks-t/pks/v0.27.6-securityv0.27.6
Release v0.27.6
Diffstat (limited to 'src/commit_list.c')
| -rw-r--r-- | src/commit_list.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/commit_list.c b/src/commit_list.c index 96bd9dc15..b4313eed2 100644 --- a/src/commit_list.c +++ b/src/commit_list.c @@ -171,7 +171,9 @@ static int commit_quick_parse( buffer--; } - if ((buffer == committer_start) || (git__strtol64(&commit_time, (char *)(buffer + 1), NULL, 10) < 0)) + if ((buffer == committer_start) || + (git__strntol64(&commit_time, (char *)(buffer + 1), + buffer_end - buffer + 1, NULL, 10) < 0)) return commit_error(commit, "cannot parse commit time"); commit->time = commit_time; |
