Add cellular genome revision profile migration
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m59s
Foundation / checks (checks) (push) Failing after 2m10s
Foundation / checks (postgres) (push) Failing after 10m34s
Foundation / checks (network) (push) Failing after 12m19s
Foundation / checks (tsan) (push) Failing after 2m14s
Foundation / checks (client) (push) Successful in 15m7s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped

This commit is contained in:
dingo
2026-10-11 06:13:17 -04:00
parent 66ffdc1cad
commit a479ce2d95
25 changed files with 725 additions and 79 deletions
+1 -1
View File
@@ -256,7 +256,7 @@ PrimitiveLives::restore(std::span<const std::uint8_t> bytes, std::uint64_t world
c.funding = in.inventory();
const auto sites = in.get(4), count = in.get(4), archive_bytes = in.get(4);
if (in.get(4) != 0 || sites == 0 || sites > max_primitive_lives || count > sites ||
archive_bytes > biology::max_archive_bytes ||
archive_bytes > biology::max_archive_legacy_bytes ||
bytes.size() != life_header_bytes + 8 * sites + life_record_bytes * count +
40 * (2 + 2 * sites) + archive_bytes + 8)
return std::unexpected{LifeCodecError::format};