Skip to content

Commit

Permalink
3540: restrict number of code sections to 1024 (#6251)
Browse files Browse the repository at this point in the history
  • Loading branch information
lightclient authored Jan 5, 2023
1 parent b2be680 commit c9d646c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EIPS/eip-3540.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ type_section := (inputs, outputs, max_stack_height)+
| kind_type | 1 byte | 0x01 | kind marker for EIP-4750 type section header |
| type_size | 2 bytes | 0x0004-0xFFFC | uint16 denoting the length of the type section content, 4 bytes per code segment |
| kind_code | 1 byte | 0x02 | kind marker for code size section |
| num_code_sections | 2 bytes | 0x0001-0xFFFF | uint16 denoting the number of the code sections |
| num_code_sections | 2 bytes | 0x0001-0x0400 | uint16 denoting the number of the code sections |
| code_size | 2 bytes | 0x0001-0xFFFF | uint16 denoting the length of the code section content |
| kind_data | 1 byte | 0x03 | kind marker for data size section |
| data_size | 2 bytes | 0x0000-0xFFFF | uint16 integer denoting the length of the data section content |
Expand Down

0 comments on commit c9d646c

Please sign in to comment.