commit 09ee8ded96c5163fc8b06a8bdba606db19b2974a from: Stefan Sperling date: Thu Oct 20 13:43:48 2022 UTC provide a more useful error if the size of a packed object won't fit in 64 bits commit - 713d6e1144f1c1a21dd9013eab0cdf75a6b01ab8 commit + 09ee8ded96c5163fc8b06a8bdba606db19b2974a blob - be8dabb4b70569ee825b8a9571f0915a88776478 blob + b23e07e8e54eaf89df334656dbd6aa25515290d2 --- lib/pack.c +++ lib/pack.c @@ -860,7 +860,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)