MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / gen_module

Function gen_module

fuzz/fuzz_targets/oom.rs:143–146  ·  view source on GitHub ↗
(input: &mut OomInput, u: &mut Unstructured<'_>)

Source from the content-addressed store, hash-verified

141}
142
143fn gen_module(input: &mut OomInput, u: &mut Unstructured<'_>) -> Result<(Vec<u8>, KnownValid)> {
144 let module = input.config.generate(u, Some(1000))?;
145 Ok((module.to_bytes(), KnownValid::Yes))
146}

Callers 2

executeFunction · 0.50
mutateFunction · 0.50

Calls 3

OkFunction · 0.85
generateMethod · 0.45
to_bytesMethod · 0.45

Tested by

no test coverage detected