Skip to main content

Module generators

Module generators 

Source
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.

Re-exports§

pub use exception_ops::ExceptionOps;
pub use gc_access::GcAccess;
pub use gc_ops::limits::GcOpsLimits;
pub use gc_ops::ops::GcOps;

Modules§

api
Generating sequences of Wasmtime API calls.
exception_ops
Generator for exception-handling fuzz test cases.
gc_access
Generate Wasm modules that exercise GC object creation, field access, and assertion patterns across different heap initialization states.
gc_ops
GC ops generator: split from the previous monolithic file.

Structs§

Config
Configuration for wasmtime::Config and generated modules for a session of fuzzing.
HeapImage
A memory heap image.
MemoryAccesses
A description of a memory config, image, etc… that can be used to test memory accesses.
MemoryConfig
Represents a normal memory configuration for Wasmtime with the given static and dynamic memory sizes.
ModuleConfig
Default module-level configuration for fuzzing Wasmtime.
PoolingAllocationConfig
Configuration for wasmtime::PoolingAllocationStrategy.
SingleInstModule
Configure a single instruction module.
Stacks
Generate a Wasm module that keeps track of its current call stack, to compare to the host.
WasmtimeConfig
Configuration related to wasmtime::Config and the various settings which can be tweaked from within.
WastTest
A wast test from this repository.

Enums§

AsyncConfig
Configuration for async support within a store.
CodegenSettings
Choose between matching the host architecture or a cross-compilation target.
CompilerStrategy
Compiler to use.
DiffValue
A value passed to and from evaluation. Note that reference types are not (yet) supported.
DiffValueType
Enumerate the supported value types.
InstanceAllocationStrategy
Configuration for wasmtime::InstanceAllocationStrategy.