Files
wasmtime/crates/fuzzing/wasm-spec-interpreter/ocaml
Andrew Brown 7fa89c4a4f [fuzz] Fix order of operands passed in to wasm-spec-interpreter (#4672)
In #4671, the meta-differential fuzz target was finding errors when
running certain Wasm modules (specifically `shr_s` in that case).
@conrad-watt diagnosed the issue as a missing reversal in the operands
passed to the spec interpreter. This change fixes #4671 and adds an
additional unit test to keep it fixed.
2022-08-10 09:55:33 -05:00
..

This directory contains the necessary parts for building a library with FFI access to the Wasm spec interpreter. Its major parts:

  • spec: the Wasm spec code as a Git submodule (you may need to retrieve it: git clone -b wasmtime_fuzzing https://github.com/conrad-watt/spec).
  • interpret.ml: a shim layer for calling the Wasm spec code and exposing it for FFI access
  • Makefile: the steps for gluing these pieces together into a static library

Note: the Makefile must be configured with the path to libgmp.a; see LIBGMP_PATHS in the Makefile (Ubuntu: libgmp-dev, Fedora: gmp-static).