Merge branch 'tc/last-modified-active-paths-optimization'

Recent optimization to "last-modified" command introduced use of
uninitialized block of memory, which has been corrected.

* tc/last-modified-active-paths-optimization:
  last-modified: fix use of uninitialized memory
This commit is contained in:
Junio C Hamano 2025-12-14 17:04:36 +09:00
commit 794c979889

View File

@ -327,7 +327,7 @@ static void process_parent(struct last_modified *lm,
if (!(parent->object.flags & PARENT1))
active_paths_free(lm, parent);
memset(lm->scratch->words, 0x0, lm->scratch->word_alloc);
memset(lm->scratch->words, 0x0, lm->scratch->word_alloc * sizeof(eword_t));
diff_queue_clear(&diff_queued_diff);
}