Merge branch 'ls/p4-doc-markup'
[gitweb.git] / builtin / index-pack.c
index 193908a619307ff38bacb212bd0450aae53e2510..45245199aebafc7fdb8eb96197dacd86c422c413 100644 (file)
@@ -1514,6 +1514,7 @@ static void read_v2_anomalous_offsets(struct packed_git *p,
                if (!(off & 0x80000000))
                        continue;
                off = off & 0x7fffffff;
+               check_pack_index_ptr(p, &idx2[off * 2]);
                if (idx2[off * 2])
                        continue;
                /*