<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/libgit2.git/src, branch cmn/tmp</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>crashdebug</title>
<updated>2017-11-21T14:11:50+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2017-11-21T14:11:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=1e3a2797660ee61fd835739240bb8a2215cede80'/>
<id>1e3a2797660ee61fd835739240bb8a2215cede80</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch '25_smartpktparse' into maint/v0.25</title>
<updated>2017-01-06T17:12:16+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@github.com</email>
</author>
<published>2017-01-06T17:12:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=6850b516b9bb7de6d8e7e1f8355acf05a7a91d98'/>
<id>6850b516b9bb7de6d8e7e1f8355acf05a7a91d98</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>smart_pkt: treat empty packet lines as error</title>
<updated>2017-01-06T17:11:58+00:00</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2016-11-15T10:44:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=2fdef641fd0dd2828bd948234ae86de75221a11a'/>
<id>2fdef641fd0dd2828bd948234ae86de75221a11a</id>
<content type='text'>
The Git protocol does not specify what should happen in the case
of an empty packet line (that is a packet line "0004"). We
currently indicate success, but do not return a packet in the
case where we hit an empty line. The smart protocol was not
prepared to handle such packets in all cases, though, resulting
in a `NULL` pointer dereference.

Fix the issue by returning an error instead. As such kind of
packets is not even specified by upstream, this is the right
thing to do.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The Git protocol does not specify what should happen in the case
of an empty packet line (that is a packet line "0004"). We
currently indicate success, but do not return a packet in the
case where we hit an empty line. The smart protocol was not
prepared to handle such packets in all cases, though, resulting
in a `NULL` pointer dereference.

Fix the issue by returning an error instead. As such kind of
packets is not even specified by upstream, this is the right
thing to do.
</pre>
</div>
</content>
</entry>
<entry>
<title>smart_pkt: verify packet length exceeds PKT_LEN_SIZE</title>
<updated>2017-01-06T17:11:44+00:00</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2016-11-15T10:36:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=66e3774d279672ee51c3b54545a79d20d1ada834'/>
<id>66e3774d279672ee51c3b54545a79d20d1ada834</id>
<content type='text'>
Each packet line in the Git protocol is prefixed by a four-byte
length of how much data will follow, which we parse in
`git_pkt_parse_line`. The transmitted length can either be equal
to zero in case of a flush packet or has to be at least of length
four, as it also includes the encoded length itself. Not
checking this may result in a buffer overflow as we directly pass
the length to functions which accept a `size_t` length as
parameter.

Fix the issue by verifying that non-flush packets have at least a
length of `PKT_LEN_SIZE`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Each packet line in the Git protocol is prefixed by a four-byte
length of how much data will follow, which we parse in
`git_pkt_parse_line`. The transmitted length can either be equal
to zero in case of a flush packet or has to be at least of length
four, as it also includes the encoded length itself. Not
checking this may result in a buffer overflow as we directly pass
the length to functions which accept a `size_t` length as
parameter.

Fix the issue by verifying that non-flush packets have at least a
length of `PKT_LEN_SIZE`.
</pre>
</div>
</content>
</entry>
<entry>
<title>http: check certificate validity before clobbering the error variable</title>
<updated>2017-01-06T17:09:39+00:00</updated>
<author>
<name>Etienne Samson</name>
<email>samson.etienne@gmail.com</email>
</author>
<published>2016-12-21T20:24:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=9a64e62f0f20c9cf9b2e1609f037060eb2d8eb22'/>
<id>9a64e62f0f20c9cf9b2e1609f037060eb2d8eb22</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>http: bump the pretend git version in the User-Agent</title>
<updated>2016-12-20T16:19:30+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2016-12-20T16:19:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=fafafb1f37d21ebf4b0bbf02651b910d842cfe27'/>
<id>fafafb1f37d21ebf4b0bbf02651b910d842cfe27</id>
<content type='text'>
We want to keep the git UA in order for services to recognise that we're
a Git client and not a browser. But in order to stop dumb HTTP some
services have blocked UAs that claim to be pre-1.6.6 git.

Thread these needles by using the "git/2.0" prefix which is still close
enough to git's yet distinct enough that you can tell it's us.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We want to keep the git UA in order for services to recognise that we're
a Git client and not a browser. But in order to stop dumb HTTP some
services have blocked UAs that claim to be pre-1.6.6 git.

Thread these needles by using the "git/2.0" prefix which is still close
enough to git's yet distinct enough that you can tell it's us.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #4034 from libgit2/cmn/sysdir-no-reguess</title>
<updated>2016-12-20T15:32:49+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@github.com</email>
</author>
<published>2016-12-20T15:32:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=8d7717c471aabb9e09ea0421f1dea487ad6af02c'/>
<id>8d7717c471aabb9e09ea0421f1dea487ad6af02c</id>
<content type='text'>
sysdir: don't re-guess when using variable substitution</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
sysdir: don't re-guess when using variable substitution</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #4032 from libgit2/cmn/https-cap-no-hardcode</title>
<updated>2016-12-20T15:28:46+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@github.com</email>
</author>
<published>2016-12-20T15:28:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=f91f170f0e334963473a0f1060d2b07fbe63abbf'/>
<id>f91f170f0e334963473a0f1060d2b07fbe63abbf</id>
<content type='text'>
Don't hard-code HTTPS cap &amp; clarify the meanings of the features enum</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Don't hard-code HTTPS cap &amp; clarify the meanings of the features enum</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #4026 from libgit2/cmn/refdb-fs-errors</title>
<updated>2016-12-19T17:28:41+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>carlosmn@github.com</email>
</author>
<published>2016-12-19T17:28:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=3714c13a888cfa539d1c6924d6b7bc747c137a42'/>
<id>3714c13a888cfa539d1c6924d6b7bc747c137a42</id>
<content type='text'>
refdb: bubble up recursive rm when locking a ref</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
refdb: bubble up recursive rm when locking a ref</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #4027 from pks-t/pks/pack-deref-cache-on-error</title>
<updated>2016-12-19T17:26:09+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>carlosmn@github.com</email>
</author>
<published>2016-12-19T17:26:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=903955f7e5d81e12ef806636c7c5fbfd6203266c'/>
<id>903955f7e5d81e12ef806636c7c5fbfd6203266c</id>
<content type='text'>
pack: dereference cached pack entry on error</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
pack: dereference cached pack entry on error</pre>
</div>
</content>
</entry>
</feed>
