git/t/unit-tests
Patrick Steinhardt ed103ab7f8 reftable/record: don't abort when decoding invalid ref value type
When decoding a ref record we read its value type from the block. In
case the type itself is invalid we call `abort()`. This is rather
heavy-handed though: the data we're reading is untrusted, so we should
treat the issue as a normal and not as a programming error.

Fix this by handling the error gracefully. Note that this also requires
us to set the value type later, as otherwise we might store an invalid
type in the record.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2026-07-03 11:08:02 -07:00
..
clar Merge branch 'ps/clar-wo-path-max' 2026-03-24 12:31:32 -07:00
.gitignore
generate-clar-decls.sh
generate-clar-suites.sh
lib-oid.c
lib-oid.h
lib-reftable.c
lib-reftable.h
test-lib.c test-lib: print escape sequence names 2026-03-11 11:38:54 -07:00
test-lib.h
u-ctype.c
u-dir.c
u-example-decorate.c
u-hash.c
u-hashmap.c
u-list-objects-filter-options.c list-objects-filter-options: support 'auto' mode for --filter 2026-02-17 11:46:40 -08:00
u-mem-pool.c
u-oid-array.c
u-oidmap.c oidmap: make entry cleanup explicit in oidmap_clear 2026-03-05 11:16:18 -08:00
u-oidtree.c oidtree: extend iteration to allow for arbitrary return codes 2026-03-20 13:16:22 -07:00
u-prio-queue.c
u-reftable-basics.c reftable/basics: fix OOB read on binary search of empty range 2026-07-03 11:08:02 -07:00
u-reftable-block.c
u-reftable-merged.c
u-reftable-pq.c
u-reftable-readwrite.c
u-reftable-record.c reftable/record: don't abort when decoding invalid ref value type 2026-07-03 11:08:02 -07:00
u-reftable-stack.c
u-reftable-table.c
u-reftable-tree.c
u-strbuf.c
u-strcmp-offset.c
u-string-list.c string-list: add string_list_sort_u() that mimics "sort -u" 2026-01-29 09:32:50 -08:00
u-strvec.c
u-trailer.c
u-urlmatch-normalization.c
u-utf8-width.c
unit-test.c
unit-test.h t/unit-tests: update clar to 39f11fe 2025-12-07 07:25:15 +09:00