<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/libgit2.git/src/pack.c, branch cmn/init-libssh2</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>pack: don't allow a negative offset</title>
<updated>2016-02-25T14:46:59+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2016-02-25T14:46:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=6d97beb91f413f4e90bab76fc7e05495bb0aab70'/>
<id>6d97beb91f413f4e90bab76fc7e05495bb0aab70</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>pack: make sure we don't go out of bounds for extended entries</title>
<updated>2016-02-25T14:43:17+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2016-02-23T17:15:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=ea9e00cb5ca271b794cca686019d17cc378e23f2'/>
<id>ea9e00cb5ca271b794cca686019d17cc378e23f2</id>
<content type='text'>
A corrupt index might have data that tells us to go look past the end of
the file for data. Catch these cases and return an appropriate error
message.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A corrupt index might have data that tells us to go look past the end of
the file for data. Catch these cases and return an appropriate error
message.
</pre>
</div>
</content>
</entry>
<entry>
<title>pack: do not free passed in poiter on error</title>
<updated>2016-02-09T08:58:56+00:00</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2016-02-09T08:58:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=a53d2e3985505de0e1dcc580cd2c624fcf0fce93'/>
<id>a53d2e3985505de0e1dcc580cd2c624fcf0fce93</id>
<content type='text'>
The function `git_packfile_stream_open` tries to free the passed
in stream when an error occurs. The only call site is
`git_indexer_append`, though, which passes in the address of a
stream struct which has not been allocated on the heap.

Fix the issue by simply removing the call to free. In case of an
error we did not allocate any memory yet and otherwise it should
be the caller's responsibility to manage it's object's lifetime.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The function `git_packfile_stream_open` tries to free the passed
in stream when an error occurs. The only call site is
`git_indexer_append`, though, which passes in the address of a
stream struct which has not been allocated on the heap.

Fix the issue by simply removing the call to free. In case of an
error we did not allocate any memory yet and otherwise it should
be the caller's responsibility to manage it's object's lifetime.
</pre>
</div>
</content>
</entry>
<entry>
<title>Make packfile_unpack_compressed a private API</title>
<updated>2016-01-13T03:02:38+00:00</updated>
<author>
<name>P.S.V.R</name>
<email>pmq2001@gmail.com</email>
</author>
<published>2016-01-13T03:02:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=b644e223aa04c49f7cc33fa1a4a26b2dbaf7aaf7'/>
<id>b644e223aa04c49f7cc33fa1a4a26b2dbaf7aaf7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove extra semicolon outside of a function</title>
<updated>2015-07-31T14:23:11+00:00</updated>
<author>
<name>Stefan Widgren</name>
<email>stefan.widgren@gmail.com</email>
</author>
<published>2015-07-31T14:23:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=c369b37919114f4976b7a06107506e95916e5dd0'/>
<id>c369b37919114f4976b7a06107506e95916e5dd0</id>
<content type='text'>
Without this change, compiling with gcc and pedantic generates warning:
ISO C does not allow extra ‘;’ outside of a function.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Without this change, compiling with gcc and pedantic generates warning:
ISO C does not allow extra ‘;’ outside of a function.
</pre>
</div>
</content>
</entry>
<entry>
<title>pack: use git_buf when building the index name</title>
<updated>2015-06-10T08:44:14+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2015-06-10T08:44:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=878293f7e1d62b951aaa7dc106ca9c6783112d96'/>
<id>878293f7e1d62b951aaa7dc106ca9c6783112d96</id>
<content type='text'>
The way we currently do it depends on the subtlety of strlen vs sizeof
and the fact that .pack is one longer than .idx. Let's use a git_buf so
we can express the manipulation we want much more clearly.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The way we currently do it depends on the subtlety of strlen vs sizeof
and the fact that .pack is one longer than .idx. Let's use a git_buf so
we can express the manipulation we want much more clearly.
</pre>
</div>
</content>
</entry>
<entry>
<title>indexer: don't look for the index we're creating</title>
<updated>2015-05-22T19:27:48+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@microsoft.com</email>
</author>
<published>2015-05-16T23:00:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=38c10ecd99fb1105d389c346b4475116dbd8788c'/>
<id>38c10ecd99fb1105d389c346b4475116dbd8788c</id>
<content type='text'>
When creating an index, know that we do not have an index for
our own packfile, preventing some unnecessary file opens and
error reporting.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When creating an index, know that we do not have an index for
our own packfile, preventing some unnecessary file opens and
error reporting.
</pre>
</div>
</content>
</entry>
<entry>
<title>Reorder some khash declarations</title>
<updated>2015-03-11T01:36:11+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2014-10-12T09:42:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=b63b76e0b0b658dff328e0d9e109ce040830786c'/>
<id>b63b76e0b0b658dff328e0d9e109ce040830786c</id>
<content type='text'>
Keep the definitions in the headers, while putting the declarations in
the C files. Putting the function definitions in headers causes
them to be duplicated if you include two headers with them.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Keep the definitions in the headers, while putting the declarations in
the C files. Putting the function definitions in headers causes
them to be duplicated if you include two headers with them.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #2907 from jasonhaslam/git_packfile_unpack_race</title>
<updated>2015-02-20T07:40:40+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2015-02-20T07:40:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=5091aff7823dd7badd821afc89b1c4c6761b13cf'/>
<id>5091aff7823dd7badd821afc89b1c4c6761b13cf</id>
<content type='text'>
Fix race in git_packfile_unpack.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix race in git_packfile_unpack.</pre>
</div>
</content>
</entry>
<entry>
<title>Fix race in git_packfile_unpack.</title>
<updated>2015-02-15T06:43:26+00:00</updated>
<author>
<name>Jason Haslam</name>
<email>jason@scitools.com</email>
</author>
<published>2015-02-15T06:43:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=8588cb0cbfadcd66061062bd0ab170a1419e006f'/>
<id>8588cb0cbfadcd66061062bd0ab170a1419e006f</id>
<content type='text'>
Increment refcount of newly added cache entries just like existing
entries looked up from the cache. Otherwise the new entry can be
evicted from the cache and destroyed while it's still in use.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Increment refcount of newly added cache entries just like existing
entries looked up from the cache. Otherwise the new entry can be
evicted from the cache and destroyed while it's still in use.
</pre>
</div>
</content>
</entry>
</feed>
