<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/libgit2.git/src/errors.c, branch cmn/remove-single-entry</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>errors: tighten up git_error_state OOMs a bit more</title>
<updated>2015-08-03T23:44:51+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2015-08-03T21:50:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=ef4857c2b3d4a61fd1d840199afc92eaf2e15345'/>
<id>ef4857c2b3d4a61fd1d840199afc92eaf2e15345</id>
<content type='text'>
When an error state is an OOM, make sure that we treat is specially
and do not try to free it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When an error state is an OOM, make sure that we treat is specially
and do not try to free it.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge remote-tracking branches 'upstream/pr/3323' and 'upstream/pr/3329'</title>
<updated>2015-08-03T20:02:02+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2015-08-03T20:02:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=854b701c8a799a484ef48d8b595601ab29876b57'/>
<id>854b701c8a799a484ef48d8b595601ab29876b57</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Make giterr_restore aware of g_git_oom_error</title>
<updated>2015-08-03T14:23:17+00:00</updated>
<author>
<name>Michael Procter</name>
<email>michael@procter.org.uk</email>
</author>
<published>2015-07-27T09:10:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=0fcfb60dc4f5e6cfd91c902d844f5d8665a5c1a7'/>
<id>0fcfb60dc4f5e6cfd91c902d844f5d8665a5c1a7</id>
<content type='text'>
Allow restoring a previously captured oom error, by
detecting when the captured message pointer points to the
static oom error message.  This means there is no need
to strdup the message in giterr_detach.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Allow restoring a previously captured oom error, by
detecting when the captured message pointer points to the
static oom error message.  This means there is no need
to strdup the message in giterr_detach.
</pre>
</div>
</content>
</entry>
<entry>
<title>Make giterr_detach no longer public</title>
<updated>2015-08-03T14:23:17+00:00</updated>
<author>
<name>Michael Procter</name>
<email>michael@procter.org.uk</email>
</author>
<published>2015-07-27T08:59:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=25dbcf34993cad3cdc3981f1ed394d3374fb640f'/>
<id>25dbcf34993cad3cdc3981f1ed394d3374fb640f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Ensure static oom error message not detached</title>
<updated>2015-08-03T14:23:17+00:00</updated>
<author>
<name>Michael Procter</name>
<email>michael@procter.org.uk</email>
</author>
<published>2015-07-23T12:17:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=c2f17bda074b2e5718456aed75fedd2196c8dc94'/>
<id>c2f17bda074b2e5718456aed75fedd2196c8dc94</id>
<content type='text'>
Error messages that are detached are assumed to be dynamically
allocated.  Passing a pointer to the static oom error message
can cause an attempt to free the static buffer later.  This change
checks if the oom error message is about to be detached and detaches
a copy instead.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Error messages that are detached are assumed to be dynamically
allocated.  Passing a pointer to the static oom error message
can cause an attempt to free the static buffer later.  This change
checks if the oom error message is about to be detached and detaches
a copy instead.
</pre>
</div>
</content>
</entry>
<entry>
<title>error: store the error messages in a reusable buffer</title>
<updated>2015-07-28T07:31:00+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2015-07-26T19:12:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=f85fc367e01eb0f5918263b1fcdfc8b7d16065c1'/>
<id>f85fc367e01eb0f5918263b1fcdfc8b7d16065c1</id>
<content type='text'>
Instead of allocating a brand new buffer for each error string we want
to store, we can use a per-thread buffer to store the error string and
re-use the underlying storage. We already use the buffer to format the
string, so this mostly makes that more direct.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of allocating a brand new buffer for each error string we want
to store, we can use a per-thread buffer to store the error string and
re-use the underlying storage. We already use the buffer to format the
string, so this mostly makes that more direct.
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow NULL error message prefix when class=GITERR_OS</title>
<updated>2014-08-13T18:55:24+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@microsoft.com</email>
</author>
<published>2014-08-13T18:55:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=e62f96dea5a46098cbca5a287f29ca811003bd68'/>
<id>e62f96dea5a46098cbca5a287f29ca811003bd68</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove now-duplicated stdarg.h include</title>
<updated>2014-02-25T07:32:25+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@microsoft.com</email>
</author>
<published>2014-02-25T07:32:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=4f46a98b6e419bd98765e18ce7fc64e3562dbd09'/>
<id>4f46a98b6e419bd98765e18ce7fc64e3562dbd09</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Improve GIT_EUSER handling</title>
<updated>2013-12-11T18:57:49+00:00</updated>
<author>
<name>Russell Belfer</name>
<email>rb@github.com</email>
</author>
<published>2013-12-04T00:45:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=96869a4edb2872934e0e167a726ab240f4270fea'/>
<id>96869a4edb2872934e0e167a726ab240f4270fea</id>
<content type='text'>
This adds giterr_user_cancel to return GIT_EUSER and clear any
error message that is sitting around.  As a result of using that
in places, we need to be more thorough with capturing errors that
happen inside a callback when used internally.  To help with that,
this also adds giterr_capture and giterr_restore so that when we
internally use a foreach-type function that clears errors and
converts them to GIT_EUSER, it is easier to restore not just the
return value, but the actual error message text.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This adds giterr_user_cancel to return GIT_EUSER and clear any
error message that is sitting around.  As a result of using that
in places, we need to be more thorough with capturing errors that
happen inside a callback when used internally.  To help with that,
this also adds giterr_capture and giterr_restore so that when we
internally use a foreach-type function that clears errors and
converts them to GIT_EUSER, it is easier to restore not just the
return value, but the actual error message text.
</pre>
</div>
</content>
</entry>
<entry>
<title>error: Simplify giterr_detach</title>
<updated>2013-11-05T13:56:10+00:00</updated>
<author>
<name>Vicent Marti</name>
<email>tanoku@gmail.com</email>
</author>
<published>2013-11-05T13:56:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=1eab9f0e32178a9aac941583c69e1b9cf9849f77'/>
<id>1eab9f0e32178a9aac941583c69e1b9cf9849f77</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
