<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/builtin-unpack-objects.c, branch v1.6.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.6.3</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.6.3'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2009-01-22T00:55:17Z</updated>
<entry>
<title>Merge branch 'lt/maint-wrap-zlib'</title>
<updated>2009-01-22T00:55:17Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-01-22T00:55:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=36dd9393938d4e7f8843c6c587c9b4db077377fc'/>
<id>urn:sha1:36dd9393938d4e7f8843c6c587c9b4db077377fc</id>
<content type='text'>
* lt/maint-wrap-zlib:
  Wrap inflate and other zlib routines for better error reporting

Conflicts:
	http-push.c
	http-walker.c
	sha1_file.c
</content>
</entry>
<entry>
<title>Wrap inflate and other zlib routines for better error reporting</title>
<updated>2009-01-11T10:13:06Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2009-01-08T03:54:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=39c68542fc8d8477f2080c99efedb9dce975abc6'/>
<id>urn:sha1:39c68542fc8d8477f2080c99efedb9dce975abc6</id>
<content type='text'>
R. Tyler Ballance reported a mysterious transient repository corruption;
after much digging, it turns out that we were not catching and reporting
memory allocation errors from some calls we make to zlib.

This one _just_ wraps things; it doesn't do the "retry on low memory
error" part, at least not yet. It is an independent issue from the
reporting.  Some of the errors are expected and passed back to the caller,
but we die when zlib reports it failed to allocate memory for now.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>better validation on delta base object offsets</title>
<updated>2008-11-02T23:22:34Z</updated>
<author>
<name>Nicolas Pitre</name>
<email>nico@cam.org</email>
</author>
<published>2008-10-29T23:02:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d8f325563d85abcd9816311b3a84093b2d1cda9f'/>
<id>urn:sha1:d8f325563d85abcd9816311b3a84093b2d1cda9f</id>
<content type='text'>
In one case, it was possible to have a bad offset equal to 0 effectively
pointing a delta onto itself and crashing git after too many recursions.
In the other cases, a negative offset could result due to off_t being
signed.  Catch those.

Signed-off-by: Nicolas Pitre &lt;nico@cam.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Replace xmalloc/memset(0) pairs with xcalloc</title>
<updated>2008-10-08T14:30:59Z</updated>
<author>
<name>Brandon Casey</name>
<email>casey@nrlssc.navy.mil</email>
</author>
<published>2008-10-06T23:39:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=19d4b416f429ac2d3f4c225aaf1af8761bcb03dd'/>
<id>urn:sha1:19d4b416f429ac2d3f4c225aaf1af8761bcb03dd</id>
<content type='text'>
Many call sites immediately initialize allocated memory with zero after
calling xmalloc. A single call to xcalloc can replace this two-call
sequence.

Signed-off-by: Brandon Casey &lt;casey@nrlssc.navy.mil&gt;
Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
</content>
</entry>
<entry>
<title>fix openssl headers conflicting with custom SHA1 implementations</title>
<updated>2008-10-03T01:06:56Z</updated>
<author>
<name>Nicolas Pitre</name>
<email>nico@cam.org</email>
</author>
<published>2008-10-01T18:05:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9126f0091f271f090cc030a788219574ab0fea97'/>
<id>urn:sha1:9126f0091f271f090cc030a788219574ab0fea97</id>
<content type='text'>
On ARM I have the following compilation errors:

    CC fast-import.o
In file included from cache.h:8,
                 from builtin.h:6,
                 from fast-import.c:142:
arm/sha1.h:14: error: conflicting types for 'SHA_CTX'
/usr/include/openssl/sha.h:105: error: previous declaration of 'SHA_CTX' was here
arm/sha1.h:16: error: conflicting types for 'SHA1_Init'
/usr/include/openssl/sha.h:115: error: previous declaration of 'SHA1_Init' was here
arm/sha1.h:17: error: conflicting types for 'SHA1_Update'
/usr/include/openssl/sha.h:116: error: previous declaration of 'SHA1_Update' was here
arm/sha1.h:18: error: conflicting types for 'SHA1_Final'
/usr/include/openssl/sha.h:117: error: previous declaration of 'SHA1_Final' was here
make: *** [fast-import.o] Error 1

This is because openssl header files are always included in
git-compat-util.h since commit 684ec6c63c whenever NO_OPENSSL is not
set, which somehow brings in &lt;openssl/sha1.h&gt; clashing with the custom
ARM version.  Compilation of git is probably broken on PPC too for the
same reason.

Turns out that the only file requiring openssl/ssl.h and openssl/err.h
is imap-send.c.  But only moving those problematic includes there
doesn't solve the issue as it also includes cache.h which brings in the
conflicting local SHA1 header file.

As suggested by Jeff King, the best solution is to rename our references
to SHA1 functions and structure to something git specific, and define those
according to the implementation used.

Signed-off-by: Nicolas Pitre &lt;nico@cam.org&gt;
Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
</content>
</entry>
<entry>
<title>Start conforming code to "git subcmd" style part 3</title>
<updated>2008-09-16T06:11:35Z</updated>
<author>
<name>Heikki Orsila</name>
<email>heikki.orsila@iki.fi</email>
</author>
<published>2008-09-13T17:18:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f18d244a6356947cf0fb753b43c0d6ac4c7b5637'/>
<id>urn:sha1:f18d244a6356947cf0fb753b43c0d6ac4c7b5637</id>
<content type='text'>
User notifications are presented as 'git cmd', and code comments
are presented as '"cmd"' or 'git's cmd', rather than 'git-cmd'.

Signed-off-by: Heikki Orsila &lt;heikki.orsila@iki.fi&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Fix some warnings (on cygwin) to allow -Werror</title>
<updated>2008-07-06T00:26:29Z</updated>
<author>
<name>Ramsay Jones</name>
<email>ramsay@ramsay1.demon.co.uk</email>
</author>
<published>2008-07-03T15:52:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6e1c23442a0315ad440bb8457703dcf1ad943b96'/>
<id>urn:sha1:6e1c23442a0315ad440bb8457703dcf1ad943b96</id>
<content type='text'>
When printing valuds of type uint32_t, we should use PRIu32, and should
not assume that it is unsigned int.  On 32-bit platforms, it could be
defined as unsigned long. The same caution applies to ntohl().

Signed-off-by: Ramsay Jones &lt;ramsay@ramsay1.demon.co.uk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Provide git_config with a callback-data parameter</title>
<updated>2008-05-14T19:34:44Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>Johannes.Schindelin@gmx.de</email>
</author>
<published>2008-05-14T17:46:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ef90d6d4208a5130185b04f06e5f90a5f9959fe3'/>
<id>urn:sha1:ef90d6d4208a5130185b04f06e5f90a5f9959fe3</id>
<content type='text'>
git_config() only had a function parameter, but no callback data
parameter.  This assumes that all callback functions only modify
global variables.

With this patch, every callback gets a void * parameter, and it is hoped
that this will help the libification effort.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>unpack-objects: fix --strict handling</title>
<updated>2008-03-05T18:53:11Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-03-05T07:46:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f2898cfadc85c763a4b8299ab833a2c733c8467a'/>
<id>urn:sha1:f2898cfadc85c763a4b8299ab833a2c733c8467a</id>
<content type='text'>
Earlier attempt (which was reverted) called added_object() (by the way,
the function should be renamed to resolve_dependents() --- it is called
when we have a complete object data, and is responsible to resolve pending
deltified objects that use this object as their delta base object) without
updating obj_list[nr].sha1 with the correct value.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>unpack-objects: prevent writing of inconsistent objects</title>
<updated>2008-03-05T18:53:11Z</updated>
<author>
<name>Martin Koegler</name>
<email>mkoegler@auto.tuwien.ac.at</email>
</author>
<published>2008-02-25T21:46:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b41860bf28a16ad6015eb0c55dc95602f1235640'/>
<id>urn:sha1:b41860bf28a16ad6015eb0c55dc95602f1235640</id>
<content type='text'>
This patch introduces a strict mode, which ensures that:
- no malformed object will be written
- no object with broken links will be written

The patch ensures this by delaying the write of all non blob object.
These object are written, after all objects they link to are written.

An error can only result in unreferenced objects.

Signed-off-by: Martin Koegler &lt;mkoegler@auto.tuwien.ac.at&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
