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.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.c')
| -rw-r--r-- | src/commit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commit.c b/src/commit.c index 838688bb8..8972c077d 100644 --- a/src/commit.c +++ b/src/commit.c @@ -443,7 +443,7 @@ int git_commit__parse(void *_commit, git_odb_object *odb_obj) while (eoln < buffer_end && *eoln != '\n') ++eoln; - if (git__prefixcmp(buffer, "encoding ") == 0) { + if (git__prefixncmp(buffer, buffer_end - buffer, "encoding ") == 0) { buffer += strlen("encoding "); commit->message_encoding = git__strndup(buffer, eoln - buffer); |
