Skip to content

Commit c39f508

Browse files
committed
fix: disable shared-everything entirely for mutate fuzz target
1 parent 314f9c6 commit c39f508

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

fuzz/src/mutate.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,16 @@ pub fn run(u: &mut Unstructured<'_>) -> Result<()> {
1111

1212
let mut seed = 0;
1313
let mut preserve_semantics = false;
14-
let (wasm, _config) = crate::generate_valid_module(u, |_config, u| {
14+
let (wasm, _config) = crate::generate_valid_module(u, |config, u| {
1515
// NB: wasm-mutate is a general-purpose tool so unsupported proposals by
1616
// wasm-mutate are not disabled here. Those must be rejected with a
1717
// first-class error in wasm-mutate instead of panicking.
1818
seed = u.arbitrary()?;
1919
preserve_semantics = u.arbitrary()?;
20+
21+
// NB: the mutator will change shared to unshared in ways that create
22+
// invalid modules so we disable the proposal (TODO: handle shared).
23+
config.shared_everything_threads_enabled = false;
2024
Ok(())
2125
})?;
2226
log::debug!("seed = {}", seed);

0 commit comments

Comments
 (0)