summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-emscripten.cpp
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2018-11-13 16:35:53 -0800
committerGitHub <noreply@github.com>2018-11-13 16:35:53 -0800
commit6b99d143a32263478b7d525886b0bea46cbbdcaa (patch)
treed6895579e11e03c9498bfe79f2da2ce8ffb8b446 /src/wasm/wasm-emscripten.cpp
parentea158f22d646c7b9bd49c6279189e25fdb31b247 (diff)
downloadbinaryen-6b99d143a32263478b7d525886b0bea46cbbdcaa.tar.gz
binaryen-6b99d143a32263478b7d525886b0bea46cbbdcaa.tar.bz2
binaryen-6b99d143a32263478b7d525886b0bea46cbbdcaa.zip
Better fuzzing (#1735)
* Recombine function pieces after randomly generating them, by creating copies and moving them around. This gives a realistic probability to seeing duplicate expressions, which some optimizations look for, which otherwise the fuzzer would have almost never reached. * Mutate function pieces after recombination, giving not only perfect duplicates but also near-duplicates. These operations take into account the type, but not the nesting and uniqueness of labels, so we fix that up afterwards (when something is broken, we replace it with something trivial).
Diffstat (limited to 'src/wasm/wasm-emscripten.cpp')
0 files changed, 0 insertions, 0 deletions