Commit Diff


commit - 9bc2ee804d400559347917989bde415da69cbc20
commit + 5061349db34001800b847dde0b0652dc2c08fcc9
blob - 66f9a20dbc56e8dba38401264f0d16410a95e9cf
blob + 54605335e3cdf190211ea780d1041ad6a31647f0
--- lib/pack_index.c
+++ lib/pack_index.c
@@ -306,6 +306,7 @@ read_packed_object(struct got_pack *pack, struct got_i
 				    "mapoff %lld would overflow size_t",
 				    (long long)mapoff
 				    + obj->delta.ofs.base_offsetlen);
+				break;
 			}
 
 			obj->crc = crc32(obj->crc, pack->map + mapoff,