Closed ericflo closed 4 years ago
The crash occurs due to an out of bounds check here https://github.com/Veykril/wasm3-rs/blob/cb7e54aa4be74afb0beb1792aa7f66138cf10fc4/src/function.rs#L113. Its not specific to f64 but to having more than 3 arguments. 1291c06 should hopefully fix it, let me know if it does.
That worked, thanks! I was way off on the cause of the bug, apologies for that.
No problem .It fortunately was a panic in rust and not a crash on the cpp side so by recreating your snippet it was quick to find.
The following code crashes at the module::link_closure step:
The way I'm running this (compiled as a dll, loaded by a game written in Unity) it's hard to get a crash dump unfortunately, but I've tried various things and whenever there's f64s in the args it crashes, but with just i32s it runs fine.