Merge pull request #4757 from pks-t/pks/v0.26.6 · RetVal/libgit2@e98d0a3 · GitHub
Skip to content

Commit e98d0a3

Browse files
authored
Merge pull request libgit2#4757 from pks-t/pks/v0.26.6
Release v0.26.6
2 parents a3e53c1 + 8153265 commit e98d0a3

4 files changed

Lines changed: 26 additions & 4 deletions

File tree

‎.travis.yml‎

Lines changed: 1 addition & 0 deletions

‎CHANGELOG.md‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
v0.26.6
2+
-------
3+
4+
This is a security release fixing out-of-bounds reads when
5+
processing smart-protocol "ng" packets.
6+
7+
When parsing an "ng" packet, we keep track of both the current position
8+
as well as the remaining length of the packet itself. But instead of
9+
taking care not to exceed the length, we pass the current pointer's
10+
position to `strchr`, which will search for a certain character until
11+
hitting NUL. It is thus possible to create a crafted packet which
12+
doesn't contain a NUL byte to trigger an out-of-bounds read.
13+
14+
The issue was discovered by the oss-fuzz project, issue 9406.
15+
116
v0.26.5
217
-------
318

‎include/git2/version.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
#ifndef INCLUDE_git_version_h__
88
#define INCLUDE_git_version_h__
99

10-
#define LIBGIT2_VERSION "0.26.5"
10+
#define LIBGIT2_VERSION "0.26.6"
1111
#define LIBGIT2_VER_MAJOR 0
1212
#define LIBGIT2_VER_MINOR 26
13-
#define LIBGIT2_VER_REVISION 5
13+
#define LIBGIT2_VER_REVISION 6
1414
#define LIBGIT2_VER_PATCH 0
1515

1616
#define LIBGIT2_SOVERSION 26

‎src/transports/smart_pkt.c‎

Lines changed: 8 additions & 2 deletions

0 commit comments

Comments
 (0)