cfallin edited PR #6820:
This PR introduces
wmemcheck
, a memory checker for a Wasm guest running inside Wasmtime.
wmemcheck
operates by recognizing calls to malloc and free inside the Wasm module, and tracking which bytes are valid. It then instruments loads and stores and flags errors when accesses are invalid. This is inspired by thememcheck
tool in Valgrind, hence the name.The functionality is off by default and is enabled with
wasmtime run --wmemcheck
.
iximeow submitted PR review:
cross-acking @cfallin's commits, but also generally happy to approve. thanks so much for your work on this Sophia!
i know there are a few open comments here but they're all small enough we can do followup PRs specifically oriented towards f.ex
docs/wmemcheck.md
and usage advice. so, seems good!
cfallin edited PR #6820:
This PR introduces
wmemcheck
, a memory checker for a Wasm guest running inside Wasmtime.
wmemcheck
operates by recognizing calls to malloc and free inside the Wasm module, and tracking which bytes are valid. It then instruments loads and stores and flags errors when accesses are invalid. This is inspired by thememcheck
tool in Valgrind, hence the name.The functionality is off by default and is enabled with
wasmtime run --wmemcheck
.Co-authored-by: Chris Fallin <chris@cfallin.org>
Co-authored-by: iximeow <me@iximeow.net>
cfallin updated PR #6820.
cfallin has enabled auto merge for PR #6820.
cfallin updated PR #6820.
cfallin has enabled auto merge for PR #6820.
cfallin updated PR #6820.
cfallin has enabled auto merge for PR #6820.
cfallin updated PR #6820.
cfallin updated PR #6820.
cfallin has enabled auto merge for PR #6820.
cfallin updated PR #6820.
cfallin has enabled auto merge for PR #6820.
cfallin updated PR #6820.
cfallin merged PR #6820.
Last updated: Dec 23 2024 at 13:07 UTC