Skip to content

Commit

Permalink
Merge pull request #20 from yamt/limit-size
Browse files Browse the repository at this point in the history
Update the overview to disallow the memory size 2**32
  • Loading branch information
fitzgen authored May 24, 2024
2 parents 7d5c156 + 542aacb commit da39cfc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions proposals/custom-page-sizes/Overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,8 @@ The [memory abbreviation] is extended to allow an optional page size as well:
with the following two bullet points:

* The `limits` must be valid within the range `2**32` - 1.

* The `limits` must be valid within the range `2**32 / pagesize`

#### Execution
Expand Down Expand Up @@ -283,6 +285,8 @@ The [memory abbreviation] is extended to allow an optional page size as well:

* Let `len` be `n` added to the length of `meminst.data` divided by `pagesize`.

* If `len` is larger than or equal to `2**32`, then fail.

* If `len` is larger than `2**32` divided by `pagesize`, then fail.

* Replace step 8 with the following step:
Expand Down

0 comments on commit da39cfc

Please sign in to comment.