git/reftable
René Scharfe e4981ed1e7 reftable: handle realloc error in parse_names()
Check the final reallocation for adding the terminating NULL and handle
it just like those in the loop.  Simply use REFTABLE_ALLOC_GROW instead
of keeping the REFTABLE_REALLOC_ARRAY call and adding code to preserve
the original pointer value around it.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2024-12-28 08:00:44 -08:00
..
LICENSE
basics.c reftable: handle realloc error in parse_names() 2024-12-28 08:00:44 -08:00
basics.h reftable: fix allocation count on realloc error 2024-12-28 08:00:44 -08:00
block.c reftable: avoid leaks on realloc error 2024-12-28 08:00:44 -08:00
block.h
blocksource.c
blocksource.h
constants.h
error.c
iter.c
iter.h
merged.c Merge branch 'ps/reftable-alloc-failures-zalloc-fix' 2024-12-23 09:32:06 -08:00
merged.h
pq.c reftable: avoid leaks on realloc error 2024-12-28 08:00:44 -08:00
pq.h
reader.c
reader.h
record.c reftable: avoid leaks on realloc error 2024-12-28 08:00:44 -08:00
record.h
reftable-basics.h
reftable-blocksource.h
reftable-error.h
reftable-iterator.h
reftable-merged.h
reftable-reader.h
reftable-record.h
reftable-stack.h
reftable-writer.h
stack.c reftable: avoid leaks on realloc error 2024-12-28 08:00:44 -08:00
stack.h
system.c
system.h Merge branch 'ps/build-sign-compare' 2024-12-23 09:32:11 -08:00
tree.c
tree.h
writer.c reftable: avoid leaks on realloc error 2024-12-28 08:00:44 -08:00
writer.h