Expand description
Test case generators.
Test case generators take raw, unstructured input from a fuzzer (e.g. libFuzzer) and translate that into a structured test case (e.g. a valid Wasm binary).
These are generally implementations of the Arbitrary
trait, or some
wrapper over an external tool, such that the wrapper implements the
Arbitrary
trait for the wrapped external tool.
Modules§
- api
- Generating sequences of Wasmtime API calls.
- component_
types - This module generates test cases for the Wasmtime component model function APIs,
e.g.
wasmtime::component::func::Func
andTypedFunc
. - table_
ops - Generating series of
table.get
andtable.set
operations.
Structs§
- Config
- Configuration for
wasmtime::Config
and generated modules for a session of fuzzing. - Heap
Image - A memory heap image.
- Memory
Accesses - A description of a memory config, image, etc… that can be used to test memory accesses.
- Module
Config - Default module-level configuration for fuzzing Wasmtime.
- Normal
Memory Config - Represents a normal memory configuration for Wasmtime with the given static and dynamic memory sizes.
- Pooling
Allocation Config - Configuration for
wasmtime::PoolingAllocationStrategy
. - Single
Inst Module - Configure a single instruction module.
- Stacks
- Generate a Wasm module that keeps track of its current call stack, to compare to the host.
- Unaligned
Memory - A custom “linear memory allocator” for wasm which only works with the “dynamic” mode of configuration where wasm always does explicit bounds checks.
- Unaligned
Memory Creator - A mechanism to generate
UnalignedMemory
at runtime. - Wasmtime
Config - Configuration related to
wasmtime::Config
and the various settings which can be tweaked from within. - Wast
Test - A wast test from this repository.
Enums§
- Async
Config - Configuration for async support within a store.
- Codegen
Settings - Choose between matching the host architecture or a cross-compilation target.
- Compiler
Strategy - Compiler to use.
- Diff
Value - A value passed to and from evaluation. Note that reference types are not (yet) supported.
- Diff
Value Type - Enumerate the supported value types.
- Instance
Allocation Strategy - Configuration for
wasmtime::InstanceAllocationStrategy
. - Memory
Config - Configuration for linear memories in Wasmtime.