File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ Linear memory semantics:
49
49
- test loading "uninitialized" things from aliased stack frames return what's there
50
50
- test that loadwithoffset traps in overflow cases
51
51
- test that newly allocated memory is zeroed
52
+ - test that resize_memory does a full 32-bit unsigned check for page_size divisibility
52
53
53
54
Function pointer semantics:
54
55
- test that function pointers work [ correctly] ( https://github.com/WebAssembly/design/issues/89 )
Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ let rec eval_expr (c : config) (e : expr) =
222
222
223
223
| ResizeMemory e ->
224
224
let i = int32 (eval_expr c e) e.at in
225
- if (Int32. rem i (page_size c)) <> Int32 . zero then
225
+ if (I32. rem_u i (page_size c)) <> I32 . zero then
226
226
error e.at " runtime: resize_memory operand not multiple of page_size" ;
227
227
Memory. resize c.modul.memory (Int32. to_int i);
228
228
None
You can’t perform that action at this time.
0 commit comments