Avoid unchecked cellular action block access
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m58s
Foundation / checks (client) (push) Successful in 13m42s
Foundation / checks (network) (push) Successful in 15m19s
Foundation / checks (tsan) (push) Successful in 8m38s
Foundation / checks (postgres) (push) Failing after 20m2s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (checks) (push) Canceled after 35m19s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m58s
Foundation / checks (client) (push) Successful in 13m42s
Foundation / checks (network) (push) Successful in 15m19s
Foundation / checks (tsan) (push) Successful in 8m38s
Foundation / checks (postgres) (push) Failing after 20m2s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (checks) (push) Canceled after 35m19s
This commit is contained in:
@@ -491,6 +491,7 @@ recover_cellular_checkpoint(Postgres& db, const FilesystemObjectStore& objects,
|
||||
return std::unexpected{RecoveryFailure{RecoveryError::store, action_bytes.error()}};
|
||||
if (!*action_bytes)
|
||||
return fail_with(RecoveryError::history);
|
||||
const auto encoded_actions = action_bytes->value_or(std::vector<std::uint8_t>{});
|
||||
|
||||
auto trace_bytes = objects.get({manifest->batch.trace_sha256, manifest->batch.trace_bytes});
|
||||
if (!trace_bytes)
|
||||
@@ -547,7 +548,7 @@ recover_cellular_checkpoint(Postgres& db, const FilesystemObjectStore& objects,
|
||||
if (!base)
|
||||
return fail_with(RecoveryError::tail);
|
||||
auto batch_actions = server::decode_cellular_action_block(
|
||||
**action_bytes, manifest->begin_tick, manifest->end_tick);
|
||||
encoded_actions, manifest->begin_tick, manifest->end_tick);
|
||||
if (!batch_actions ||
|
||||
!server::match_cellular_actions_to_trace(**base, *trace, *batch_actions))
|
||||
return fail_with(RecoveryError::history);
|
||||
|
||||
Reference in New Issue
Block a user