Skip to content

Commit

Permalink
Merge branch 'master' into dento/blob-tx
Browse files Browse the repository at this point in the history
  • Loading branch information
Dentosal authored Jul 1, 2024
2 parents 3699961 + c778d52 commit 3a6c6c6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions spell-check-custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ scalable
Scalable
Exponentiate
exponentiate
Executablity
executablity
Executability
executability
Unwritable
unwritable
untrusted
Expand Down
12 changes: 10 additions & 2 deletions src/fuel-vm/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,15 @@ A call frame consists of the following, word-aligned:

## Access rights

Only memory that has been allocated is accessible. Attempting to read or write memory that has not been allocated will result in VM panic. Similarly reads or writes that cross from the stack to the heap will panic. Note that stack remains readable even after stack frame has been shrunk. However, if the heap is afterwards expanded to cover that area, the crossing read prohibition still remains. In other word, memory between highest-ever `$sp` value and current `$hp` is inaccessible.
Only memory that has been allocated is accessible.
In other words, memory between highest-ever `$sp` value and current `$hp`
is inaccessible. Attempting to read or write
memory that has not been allocated will result in VM panic.
Similarly reads or writes that cross from the stack to the heap
will panic. Note that stack remains readable even after stack
frame has been shrunk. However, if the heap is afterwards expanded
to cover that area, the crossing read prohibition still remains,
while all memory is accessible.

### Ownership

Expand All @@ -199,6 +207,6 @@ If the context is internal, the owned memory range for a call frame is:
1. `[$ssp, $sp)`: the writable stack area of the call frame.
1. `[$hp, $fp->$hp)`: the heap area allocated by this call frame.

### Executablity
### Executability

Memory is only executable in range `[$is, $sp)`. Attempting to execute instructions outside these boundaries will cause a panic.

0 comments on commit 3a6c6c6

Please sign in to comment.