<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/libgit2.git, branch v0.26.2</title>
<subtitle>github.com: libgit2/libgit2.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/'/>
<entry>
<title>Merge pull request #4572 from pks-t/pks/index-secfixes</title>
<updated>2018-03-08T17:00:46+00:00</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2018-03-08T17:00:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=dd2d5381773ca3f7bc31f56aea6fc067db5ea404'/>
<id>dd2d5381773ca3f7bc31f56aea6fc067db5ea404</id>
<content type='text'>
Security fixes for reading index v4</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Security fixes for reading index v4</pre>
</div>
</content>
</entry>
<entry>
<title>Bump version to v0.26.2</title>
<updated>2018-03-08T16:24:33+00:00</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2018-03-08T16:19:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=182e8e5edac37038918bb685b03b65da332854d7'/>
<id>182e8e5edac37038918bb685b03b65da332854d7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>CHANGELOG: udpate for v0.26.2</title>
<updated>2018-03-08T16:24:33+00:00</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2018-03-08T16:23:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=01b5a161221d12af3c40a575c84e4aa1c20a15a8'/>
<id>01b5a161221d12af3c40a575c84e4aa1c20a15a8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>index: error out on unreasonable prefix-compressed path lengths</title>
<updated>2018-03-08T15:09:59+00:00</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2018-03-08T12:36:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=6f4d04b5276c93c26250fff1949f90ba67acee37'/>
<id>6f4d04b5276c93c26250fff1949f90ba67acee37</id>
<content type='text'>
When computing the complete path length from the encoded
prefix-compressed path, we end up just allocating the complete path
without ever checking what the encoded path length actually is. This can
easily lead to a denial of service by just encoding an unreasonable long
path name inside of the index. Git already enforces a maximum path
length of 4096 bytes. As we also have that enforcement ready in some
places, just make sure that the resulting path is smaller than
GIT_PATH_MAX.

Reported-by: Krishna Ram Prakash R &lt;krp@gtux.in&gt;
Reported-by: Vivek Parikh &lt;viv0411.parikh@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When computing the complete path length from the encoded
prefix-compressed path, we end up just allocating the complete path
without ever checking what the encoded path length actually is. This can
easily lead to a denial of service by just encoding an unreasonable long
path name inside of the index. Git already enforces a maximum path
length of 4096 bytes. As we also have that enforcement ready in some
places, just make sure that the resulting path is smaller than
GIT_PATH_MAX.

Reported-by: Krishna Ram Prakash R &lt;krp@gtux.in&gt;
Reported-by: Vivek Parikh &lt;viv0411.parikh@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>index: fix out-of-bounds read with invalid index entry prefix length</title>
<updated>2018-03-08T12:21:55+00:00</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2018-03-08T12:00:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=6ddd286e9c1a80fc71885f66b605f3a3500ad5cb'/>
<id>6ddd286e9c1a80fc71885f66b605f3a3500ad5cb</id>
<content type='text'>
The index format in version 4 has prefix-compressed entries, where every
index entry can compress its path by using a path prefix of the previous
entry. Since implmenting support for this index format version in commit
5625d86b9 (index: support index v4, 2016-05-17), though, we do not
correctly verify that the prefix length that we want to reuse is
actually smaller or equal to the amount of characters than the length of
the previous index entry's path. This can lead to a an integer underflow
and subsequently to an out-of-bounds read.

Fix this by verifying that the prefix is actually smaller than the
previous entry's path length.

Reported-by: Krishna Ram Prakash R &lt;krp@gtux.in&gt;
Reported-by: Vivek Parikh &lt;viv0411.parikh@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The index format in version 4 has prefix-compressed entries, where every
index entry can compress its path by using a path prefix of the previous
entry. Since implmenting support for this index format version in commit
5625d86b9 (index: support index v4, 2016-05-17), though, we do not
correctly verify that the prefix length that we want to reuse is
actually smaller or equal to the amount of characters than the length of
the previous index entry's path. This can lead to a an integer underflow
and subsequently to an out-of-bounds read.

Fix this by verifying that the prefix is actually smaller than the
previous entry's path length.

Reported-by: Krishna Ram Prakash R &lt;krp@gtux.in&gt;
Reported-by: Vivek Parikh &lt;viv0411.parikh@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>index: convert `read_entry` to return entry size via an out-param</title>
<updated>2018-03-08T12:15:35+00:00</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2018-03-08T11:49:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=b6756821d9259cd5991caabd7835658572278051'/>
<id>b6756821d9259cd5991caabd7835658572278051</id>
<content type='text'>
The function `read_entry` does not conform to our usual coding style of
returning stuff via the out parameter and to use the return value for
reporting errors. Due to most of our code conforming to that pattern, it
has become quite natural for us to actually return `-1` in case there is
any error, which has also slipped in with commit 5625d86b9 (index:
support index v4, 2016-05-17). As the function returns an `size_t` only,
though, the return value is wrapped around, causing the caller of
`read_tree` to continue with an invalid index entry. Ultimately, this
can lead to a double-free.

Improve code and fix the bug by converting the function to return the
index entry size via an out parameter and only using the return value to
indicate errors.

Reported-by: Krishna Ram Prakash R &lt;krp@gtux.in&gt;
Reported-by: Vivek Parikh &lt;viv0411.parikh@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The function `read_entry` does not conform to our usual coding style of
returning stuff via the out parameter and to use the return value for
reporting errors. Due to most of our code conforming to that pattern, it
has become quite natural for us to actually return `-1` in case there is
any error, which has also slipped in with commit 5625d86b9 (index:
support index v4, 2016-05-17). As the function returns an `size_t` only,
though, the return value is wrapped around, causing the caller of
`read_tree` to continue with an invalid index entry. Ultimately, this
can lead to a double-free.

Improve code and fix the bug by converting the function to return the
index entry size via an out parameter and only using the return value to
indicate errors.

Reported-by: Krishna Ram Prakash R &lt;krp@gtux.in&gt;
Reported-by: Vivek Parikh &lt;viv0411.parikh@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #4568 from pks-t/pks/zlib-update-0.26</title>
<updated>2018-03-07T17:46:15+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2018-03-07T17:46:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=3f15bf8b5abc89e3f42828c6a078fb3d5750fbe3'/>
<id>3f15bf8b5abc89e3f42828c6a078fb3d5750fbe3</id>
<content type='text'>
deps: upgrade embedded zlib to version 1.2.11</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
deps: upgrade embedded zlib to version 1.2.11</pre>
</div>
</content>
</entry>
<entry>
<title>Bump version to 0.26.1</title>
<updated>2018-03-07T16:01:18+00:00</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2018-03-07T10:42:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=67211f3129316b0e1631e19e1937aa56a2931efe'/>
<id>67211f3129316b0e1631e19e1937aa56a2931efe</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>CHANGELOG.md: update for version 0.26.1</title>
<updated>2018-03-07T16:01:15+00:00</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2018-03-07T16:00:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=aade4bd19ec5b7b47056d01dfeaa09c66b676212'/>
<id>aade4bd19ec5b7b47056d01dfeaa09c66b676212</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>travis: we use bintray's own key for signing</title>
<updated>2018-03-07T15:55:43+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>carlosmn@github.com</email>
</author>
<published>2018-01-10T15:13:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=490c7426e8b2d8718588e5c517e16cf9c4d8d7d9'/>
<id>490c7426e8b2d8718588e5c517e16cf9c4d8d7d9</id>
<content type='text'>
The VM on Travis apparently will still proceed, but it's good practice.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The VM on Travis apparently will still proceed, but it's good practice.
</pre>
</div>
</content>
</entry>
</feed>
