InstanceHandle::new executes undefined behavior by calling ptr::copy with a misaligned pointer #3245
Labels
bug
Something isn't working
📦 lib-vm
About wasmer-vm
🕵️ needs investigation
The issue/PR needs further investigation
priority-high
High priority issue
🔈soundness
Bugs causing an unsound API
🏚 stale
Inactive issues or PR
Describe the bug
InstanceHandle
executes undefined behavior by callingptr::copy
with an misaligned pointer.I have encountered this in the latest release, 3.0.0-beta.2 and also in 2.3.0 via
cosmwasm-vm
.Steps to reproduce
cargo +nightly test -Zbuild-std --target=x86_64-unknown-linux-gnu
Expected behavior
Test pass
Actual behavior
(this is from
nextest
but the normal test runner works too)The text was updated successfully, but these errors were encountered: