Improve stability for fuzz targets. (#3804)
This commit improves the stability of the fuzz targets by ensuring the generated configs and modules are congruent, especially when the pooling allocator is being used. For the `differential` target, this means both configurations must use the same allocation strategy for now as one side generates the module that might not be compatible with another arbitrary config now that we fuzz the pooling allocator. These changes also ensure that constraints put on the config are more consistently applied, especially when using a fuel-based timeout.
This commit is contained in:
@@ -17,6 +17,7 @@ pub fn differential_v8_execution(wasm: &[u8], config: &crate::generators::Config
|
||||
// Wasmtime setup
|
||||
log_wasm(wasm);
|
||||
let (wasmtime_module, mut wasmtime_store) = super::differential_store(wasm, config);
|
||||
let wasmtime_module = wasmtime_module?;
|
||||
log::trace!("compiled module with wasmtime");
|
||||
|
||||
// V8 setup
|
||||
|
||||
Reference in New Issue
Block a user