Skip to content

pr-2255/msuozzo/reftable-obj-record-count-v2

tagged this 21 Oct 21:03
Changes since v1:

 * Fix the truncation in reftable_alloc_size() and reftable_calloc() instead
   of checking the count in reftable_obj_record_decode() (Patrick, Aniket).
 * Test reftable_alloc_size() directly instead of the decoder (Aniket).
 * Move the Makefile change into its own patch (Patrick).
 * Rewrite the commit messages (Patrick).

Matthew Suozzo (2):
  Makefile: build the reftable record unit tests
  reftable/basics: widen allocation size arguments to uintmax_t

 Makefile                         |  1 +
 reftable/basics.c                |  9 +++++----
 reftable/basics.h                |  5 +++--
 t/unit-tests/u-reftable-basics.c | 18 ++++++++++++++++++
 4 files changed, 27 insertions(+), 6 deletions(-)

base-commit: 6de20f6092dcf9bdb1c8efe03db4b70c82b423dd

Submitted-As: https://lore.kernel.org/git/pull.2255.v2.git.1792616615.gitgitgadget@gmail.com
In-Reply-To: https://lore.kernel.org/git/pull.2255.git.1791989883899.gitgitgadget@gmail.com
Assets 2
Loading