commit a893025fd207950945eed1482170223a2d3b9ce3 from: Stefan Sperling date: Fri Jun 11 17:02:57 2021 UTC addblk: iterate over the correct number of entries after growing the array ok naddy commit - e89540a95a268f47ef2d1b24c41fbb72a1f0bdc9 commit + a893025fd207950945eed1482170223a2d3b9ce3 blob - 93610404be5f10c352889a9f87c927eeecb91e11 blob + a458b9192083dfe01fb591f80952bd08fbea9f26 --- lib/deltify.c +++ lib/deltify.c @@ -157,7 +157,7 @@ addblk(struct got_delta_table *dt, FILE *f, off_t len, * in the array depend on the allocated length of the array. */ dt->nblocks = 0; - for (i = 0; i < nalloc; i++) { + for (i = 0; i < old_size; i++) { if (db[i].len == 0) continue; err = addblk(dt, f, db[i].len, db[i].offset,