Skip to content

Commit

Permalink
Require MAX_INITCODE_SIZE limit to be satisfied during validation (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdobacz authored Jun 13, 2024
1 parent 76bc264 commit d0f35ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/eof.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ The following validity constraints are placed on the container format:
- the total size of a deployed container without container sections must be `13 + 2*num_code_sections + types_size + code_size[0] + ... + code_size[num_code_sections-1] + data_size`
- the total size of a deployed container with at least one container section must be `16 + 2*num_code_sections + types_size + code_size[0] + ... + code_size[num_code_sections-1] + data_size + 2*num_container_sections + container_size[0] + ... + container_size[num_container_sections-1]`
- the total size of not yet deployed container might be up to `data_size` lower than the above values due to how the data section is rewritten and resized during deployment (see [Data Section Lifecycle](#data-section-lifecycle))
- the total size of a container must not exceed `MAX_INITCODE_SIZE` (as defined in EIP-3860)
- **NOTE** this condition, in combination with the container format defined above, implies that validation should fail at the moment any section is found to be declared to end after the last byte of the container

## Execution Semantics

Expand Down

0 comments on commit d0f35ea

Please sign in to comment.