summaryrefslogtreecommitdiff
path: root/src/js/binaryen.js-post.js
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2023-05-12 11:00:28 -0700
committerGitHub <noreply@github.com>2023-05-12 11:00:28 -0700
commitd7b14a67ca4e9b111d5733239af88328cb779030 (patch)
treeb244025f92c0d689d6fd91c623ae618e26a85350 /src/js/binaryen.js-post.js
parent64e5a99ee014af3a138a36f5a87addfacfc95f0c (diff)
downloadbinaryen-d7b14a67ca4e9b111d5733239af88328cb779030.tar.gz
binaryen-d7b14a67ca4e9b111d5733239af88328cb779030.tar.bz2
binaryen-d7b14a67ca4e9b111d5733239af88328cb779030.zip
Prune trapping code during TrapsNeverHappen fuzzing (#5717)
This removes the trapping export and all others after it. This avoids a potential infinite loop that can happen when fuzzing TNH, as if TNH is set and a trap happens then the optimizer can cause an iloop, and while that is valid, it would hang the fuzzer. We could check for a timeout, but it is faster and more robust to just remove the code we can't compare anyhow. This uses wasm-metadce to remove the exports from the failing one.
Diffstat (limited to 'src/js/binaryen.js-post.js')
0 files changed, 0 insertions, 0 deletions