Commit Diff


commit - aecd22250a8ec26da244683ed64b290af0e1c5f3
commit + eac8a74152aaeefa13523d08f355cfd630a8c799
blob - b32ea0c0007766add7513ffdeb536b75266ec0a7
blob + c1e3e0b123933e13467cda9be352c1fc603e4fda
--- lib/pack.c
+++ lib/pack.c
@@ -857,7 +857,8 @@ got_pack_parse_object_type_and_size(uint8_t *type, uin
 	do {
 		/* We do not support size values which don't fit in 64 bit. */
 		if (i > 9)
-			return got_error(GOT_ERR_NO_SPACE);
+			return got_error_fmt(GOT_ERR_OBJ_TOO_LARGE,
+			    "packfile offset %llu", offset);
 
 		if (pack->map) {
 			if (mapoff + sizeof(sizeN) >= pack->filesize)