commit 68bdcdc2f5d3c37d918f85368c2537a8aa7d90eb from: Stefan Sperling date: Fri Jun 11 17:10:50 2021 UTC addblk() may seek in its input file; reposition the file pointer afterwards commit - a893025fd207950945eed1482170223a2d3b9ce3 commit + 68bdcdc2f5d3c37d918f85368c2537a8aa7d90eb blob - a458b9192083dfe01fb591f80952bd08fbea9f26 blob + 45add0094489e3d46e675165b1d5379f56a01a4a --- lib/deltify.c +++ lib/deltify.c @@ -268,6 +268,8 @@ got_deltify_init(struct got_delta_table **dt, FILE *f, if (err) goto done; fileoffset += blocklen; + if (fseeko(f, fileoffset, SEEK_SET) == -1) + return got_error_from_errno("fseeko"); } done: if (err) {