<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/protocol-caps.c, branch v2.33.6</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.33.6</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.33.6'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2021-08-31T18:15:16Z</updated>
<entry>
<title>protocol-caps.c: fix memory leak in send_info()</title>
<updated>2021-08-31T18:15:16Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2021-08-31T13:46:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=88682b016dcbdbbdebdd2efd9b7de63e4395636f'/>
<id>urn:sha1:88682b016dcbdbbdebdd2efd9b7de63e4395636f</id>
<content type='text'>
Fix a memory leak in a2ba162cda (object-info: support for retrieving
object info, 2021-04-20) which appears to have been based on a
misunderstanding of how the pkt-line.c API works. There is no need to
strdup() input to packet_writer_write(), it's just a printf()-like
format function.

This fixes a potentially large memory leak, since the number of OID
lines the "object-info" call can be arbitrarily large (or a small one
if the request is small).

This makes t5701-git-serve.sh pass again under SANITIZE=leak, as it
did before a2ba162cda2.

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Acked-by: Bruno Albuquerque &lt;bga@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>object-info: support for retrieving object info</title>
<updated>2021-04-21T00:41:13Z</updated>
<author>
<name>Bruno Albuquerque</name>
<email>bga@google.com</email>
</author>
<published>2021-04-20T23:38:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a2ba162cda2acc171c3e36acbbc854792b093cb7'/>
<id>urn:sha1:a2ba162cda2acc171c3e36acbbc854792b093cb7</id>
<content type='text'>
Sometimes it is useful to get information of an object without having to
download it completely.

Add the "object-info" capability that lets the client ask for
object-related information with their full hexadecimal object names.

Only sizes are returned for now.

Signed-off-by: Bruno Albuquerque &lt;bga@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
