<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/reftable/readwrite_test.c, branch v2.40.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.40.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.40.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2022-02-23T21:36:26Z</updated>
<entry>
<title>reftable: rename writer_stats to reftable_writer_stats</title>
<updated>2022-02-23T21:36:26Z</updated>
<author>
<name>Han-Wen Nienhuys</name>
<email>hanwen@google.com</email>
</author>
<published>2022-02-21T18:46:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=73a4c188b77acbfdf25641e2bb4d1600c45338ec'/>
<id>urn:sha1:73a4c188b77acbfdf25641e2bb4d1600c45338ec</id>
<content type='text'>
This function is part of the reftable API, so it should use the
reftable_ prefix

Signed-off-by: Han-Wen Nienhuys &lt;hanwen@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>reftable: add test for length of disambiguating prefix</title>
<updated>2022-02-23T21:36:26Z</updated>
<author>
<name>Han-Wen Nienhuys</name>
<email>hanwen@google.com</email>
</author>
<published>2022-02-21T18:46:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3c443a02a9f98227fa5c22935d88bcf68cfeaeec'/>
<id>urn:sha1:3c443a02a9f98227fa5c22935d88bcf68cfeaeec</id>
<content type='text'>
The ID =&gt; ref map is trimming object IDs to a disambiguating prefix.
Check that we are computing their length correctly.

Signed-off-by: Han-Wen Nienhuys &lt;hanwen@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>reftable: ensure that obj_id_len is &gt;= 2 on writing</title>
<updated>2022-02-23T21:36:26Z</updated>
<author>
<name>Han-Wen Nienhuys</name>
<email>hanwen@google.com</email>
</author>
<published>2022-02-21T18:46:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b4007fcc6fe04deeeb3cdf7b018413f65c9de6e8'/>
<id>urn:sha1:b4007fcc6fe04deeeb3cdf7b018413f65c9de6e8</id>
<content type='text'>
When writing the same hash many times, we might decide to use a
length-1 object ID prefix for the ObjectID =&gt; ref table, which is out
of spec.

Signed-off-by: Han-Wen Nienhuys &lt;hanwen@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>reftable: add a test that verifies that writing empty keys fails</title>
<updated>2022-02-23T21:36:26Z</updated>
<author>
<name>Han-Wen Nienhuys</name>
<email>hanwen@google.com</email>
</author>
<published>2022-02-21T18:46:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=140765911050d62a23503972ef6513ef18252ad3'/>
<id>urn:sha1:140765911050d62a23503972ef6513ef18252ad3</id>
<content type='text'>
Empty keys can only be written as ref records with empty names. The
log record has a logical timestamp in the key, so the key is never
empty.

Signed-off-by: Han-Wen Nienhuys &lt;hanwen@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'hn/reftable-coverity-fixes'</title>
<updated>2022-02-16T23:14:28Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2022-02-16T23:14:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=34230514b83f55ea0f4531e8486533ac5c3e2ffe'/>
<id>urn:sha1:34230514b83f55ea0f4531e8486533ac5c3e2ffe</id>
<content type='text'>
Problems identified by Coverity in the reftable code have been
corrected.

* hn/reftable-coverity-fixes:
  reftable: add print functions to the record types
  reftable: make reftable_record a tagged union
  reftable: remove outdated file reftable.c
  reftable: implement record equality generically
  reftable: make reftable-record.h function signatures const correct
  reftable: handle null refnames in reftable_ref_record_equal
  reftable: drop stray printf in readwrite_test
  reftable: order unittests by complexity
  reftable: all xxx_free() functions accept NULL arguments
  reftable: fix resource warning
  reftable: ignore remove() return value in stack_test.c
  reftable: check reftable_stack_auto_compact() return value
  reftable: fix resource leak blocksource.c
  reftable: fix resource leak in block.c error path
  reftable: fix OOB stack write in print functions
</content>
</entry>
<entry>
<title>reftable: drop stray printf in readwrite_test</title>
<updated>2022-01-20T19:31:53Z</updated>
<author>
<name>Han-Wen Nienhuys</name>
<email>hanwen@google.com</email>
</author>
<published>2022-01-20T15:12:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6322511148447d30c8c43b63f4561a86d177b620'/>
<id>urn:sha1:6322511148447d30c8c43b63f4561a86d177b620</id>
<content type='text'>
Signed-off-by: Han-Wen Nienhuys &lt;hanwen@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>reftable: fix resource leak in block.c error path</title>
<updated>2022-01-20T19:31:52Z</updated>
<author>
<name>Han-Wen Nienhuys</name>
<email>hanwen@google.com</email>
</author>
<published>2022-01-20T15:12:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=24d4d38c0b32fd4eb075af89d7b744c5647db5c2'/>
<id>urn:sha1:24d4d38c0b32fd4eb075af89d7b744c5647db5c2</id>
<content type='text'>
Add test coverage for corrupt zlib data. Fix memory leaks demonstrated by
unittest.

This problem was discovered by a Coverity scan.

Signed-off-by: Han-Wen Nienhuys &lt;hanwen@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>reftable: signal overflow</title>
<updated>2021-12-23T20:28:34Z</updated>
<author>
<name>Han-Wen Nienhuys</name>
<email>hanwen@google.com</email>
</author>
<published>2021-12-23T19:29:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0dd44584abf3fee0ba19b5edf856be2a79974228'/>
<id>urn:sha1:0dd44584abf3fee0ba19b5edf856be2a79974228</id>
<content type='text'>
reflog entries have unbounded size. In theory, each log ('g') block in reftable
can have an arbitrary size, so the format allows for arbitrarily sized reflog
messages. However, in the implementation, we are not scaling the log blocks up
with the message, and writing a large message fails.

This triggers a failure for reftable in t7006-pager.sh.

Until this is fixed more structurally, report an error from within the reftable
library for easier debugging.

Signed-off-by: Han-Wen Nienhuys &lt;hanwen@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>reftable: reftable file level tests</title>
<updated>2021-10-08T17:45:48Z</updated>
<author>
<name>Han-Wen Nienhuys</name>
<email>hanwen@google.com</email>
</author>
<published>2021-10-07T20:25:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ffc97f1a9e154262ae23bf2d6ec6c1541fa3b15a'/>
<id>urn:sha1:ffc97f1a9e154262ae23bf2d6ec6c1541fa3b15a</id>
<content type='text'>
With support for reading and writing files in place, we can construct files (in
memory) and attempt to read them back.

Because some sections of the format are optional (eg. indices, log entries), we
have to exercise this code using multiple sizes of input data

Signed-off-by: Han-Wen Nienhuys &lt;hanwen@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
