commit b0517dd07105250eb20b57d704d7102f6e4ab18d from: Stefan Sperling date: Wed Jan 10 20:18:24 2018 UTC fix off-by-one in pack file size check commit - 0a0a30486325aded3095a281a9238a8dcc9b16a7 commit + b0517dd07105250eb20b57d704d7102f6e4ab18d blob - 8267925e9c7305afcae3675d6c0a2935ed7cad33 blob + f8e642d69cca526a214c92952dda158087d31ad0 --- lib/pack.c +++ lib/pack.c @@ -161,7 +161,7 @@ got_packidx_open(struct got_packidx_v2_hdr **packidx, } /* Large file offsets are contained only in files > 2GB. */ - if (packfile_size < 0x80000000) + if (packfile_size <= 0x80000000) goto checksum; p->large_offsets = calloc(nobj, sizeof(*p->large_offsets));