Thread (1 message) 1 message, 1 author, 2019-02-12

Re: [PATCH] unpack-trees.c: fix writing "link" index ext with null base oid

From: Junio C Hamano <hidden>
Date: 2019-02-12 16:49:17

Elijah Newren [off-list ref] writes:
quoted
There is also another side fix in remove_split_index() that causes a
crash when doing "git update-index --no-split-index" when base_oid in
the index file is null. In this case we will not load
istate->split_index->base but we dereference it anyway and are rewarded
with a segfault. This should not happen anymore, but it's still wrong to
dereference a potential NULL pointer, especially when we do check for
NULL pointer in the next code.

Reported-by: Luke Diamand <redacted>
Signed-off-by: Nguyễn Thái Ngọc Duy <redacted>
Thanks for digging this down and fixing it.  When I saw this split
index bug bisect to me that my heart sank a little; there's so much of
that code I don't understand.  Nice to see you've already come along
and fixed it all up.  :-)
Thanks, all.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help