summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-10-07 06:38:21 +0200
committerJunio C Hamano <gitster@pobox.com>2024-10-07 15:08:11 -0700
commitecb5c4318cd8b5bbb72f943b6128fe946ffcb56e (patch)
treeebc6d28a99acd59267d413d1c1f4a6b06847f1e9 /commit.c
parent2be7fc012e6747160b4b6586a1ec209598581ade (diff)
unpack-trees: detect mismatching number of cache-tree/index entries
Same as the preceding commit, we unconditionally dereference the index's cache entries depending on the number of cache-tree entries, which can lead to a segfault when the cache-tree is corrupted. Fix this bug. This also makes t4058 pass with the leak sanitizer enabled. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions