Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wasm] improve memory access and marshaling range checks #64845

Merged
merged 13 commits into from
May 20, 2022
Prev Previous commit
Next Next commit
fix test
  • Loading branch information
pavelsavara committed May 19, 2022
commit 3e3e658b4f0a7a71c69beeaa5735dfbca23f4799
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public static unsafe void UInt52TestOK(ulong value)
if (value < int.MaxValue)
{
Assert.IsType<int>(o);
ulong actual = (uint)o;
ulong actual = (ulong)(long)(int)o;
Assert.Equal(expected, actual);
}
Assert.Equal(expected, actual2);
Expand Down
1 change: 0 additions & 1 deletion src/mono/wasm/runtime/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import { bind_runtime_method } from "./method-binding";
import { CharPtr, EmscriptenModule, ManagedPointer, NativePointer, VoidPtr } from "./types/emscripten";
import Configuration from "consts:configuration";

export type GCHandle = {
__brand: "GCHandle"
Expand Down