Skip to content

Commit

Permalink
Merge pull request #537 from WebAssembly/fix-array-fill-copy-bounds
Browse files Browse the repository at this point in the history
[Spec] Fix bounds check prose for array.fill and array.copy
  • Loading branch information
rossberg committed Apr 15, 2024
2 parents e19c032 + c84a3c6 commit e5af649
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions document/core/exec/instructions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,7 @@ Reference Instructions

12. Assert: due to :ref:`validation <valid-array.fill>`, the :ref:`array instance <syntax-arrayinst>` :math:`S.\SARRAYS[a]` exists.

13. If :math:`d + n` is larger than or equal to the length of :math:`S.\SARRAYS[a].\AIFIELDS`, then:
13. If :math:`d + n` is larger than the length of :math:`S.\SARRAYS[a].\AIFIELDS`, then:

a. Trap.

Expand Down Expand Up @@ -1175,11 +1175,11 @@ Reference Instructions

23. Assert: due to :ref:`validation <valid-array.copy>`, the :ref:`array instance <syntax-arrayinst>` :math:`S.\SARRAYS[a_2]` exists.

24. If :math:`d + n` is larger than or equal to the length of :math:`S.\SARRAYS[a_1].\AIFIELDS`, then:
24. If :math:`d + n` is larger than the length of :math:`S.\SARRAYS[a_1].\AIFIELDS`, then:

a. Trap.

25. If :math:`s + n` is larger than or equal to the length of :math:`S.\SARRAYS[a_2].\AIFIELDS`, then:
25. If :math:`s + n` is larger than the length of :math:`S.\SARRAYS[a_2].\AIFIELDS`, then:

a. Trap.

Expand Down

0 comments on commit e5af649

Please sign in to comment.