summaryrefslogtreecommitdiffstats
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorHan Young <hanyang.tony@bytedance.com>2026-02-24 14:13:29 +0800
committerJunio C Hamano <gitster@pobox.com>2026-02-24 07:20:44 -0800
commit2d88ab078db03b6a608d30b8ef49cc7afb4b2f1c (patch)
tree81ef903b262e3ddc5e2a38189d4aeb549751162b /contrib/persistent-https
parent67ad42147a7acc2af6074753ebd03d904476118f (diff)
downloadgit-2d88ab078db03b6a608d30b8ef49cc7afb4b2f1c.tar.gz
git-2d88ab078db03b6a608d30b8ef49cc7afb4b2f1c.zip
diffcore-break: avoid segfault with freed entries
After we have freed the file pair, we should set the queue reference to null. When computing a diff in a partial clone, there is a chance that we could trigger a prefetch of missing objects when there are freed entries in the global diff queue due to break-rewrites detection. The segfault only occurs if an entry has been freed by break-rewrites and there is an entry to be prefetched. There is a new test in t4067 that trigger the segmentation fault that results in this case. The test explicitly fetch the necessary blobs to trigger the break rewrites, some blobs are left to be prefetched. The fix is to set the queue pointer to NULL after it is freed, the prefetch will skip NULL entries. Signed-off-by: Han Young <hanyang.tony@bytedance.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions