diff options
-rwxr-xr-x | scripts/fuzz_opt.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/fuzz_opt.py b/scripts/fuzz_opt.py index 25d06c148..03334ffa7 100755 --- a/scripts/fuzz_opt.py +++ b/scripts/fuzz_opt.py @@ -181,6 +181,15 @@ def randomize_fuzz_settings(): FUZZ_OPTS += ['--legalize-js-interface'] else: LEGALIZE = False + + # if GC is enabled then run --dce at the very end, to ensure that our + # binaries validate in other VMs, due to how non-nullable local validation + # and unreachable code interact. see + # https://github.com/WebAssembly/binaryen/pull/5665 + # https://github.com/WebAssembly/binaryen/issues/5599 + if '--disable-gc' not in FEATURE_OPTS: + FUZZ_OPTS += ['--dce'] + print('randomized settings (NaNs, OOB, legalize):', NANS, OOB, LEGALIZE) |