diff options
author | Alon Zakai <azakai@google.com> | 2021-06-24 11:32:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-24 11:32:37 -0700 |
commit | 1b0d724fd5938931e6924941641dd8924ad49938 (patch) | |
tree | 704722f4c2d6785289e712b66957a33757dbb484 /scripts/test/wasm2js.py | |
parent | 21711ffea3cea19cab52bbd989a1c8638b3dd9a7 (diff) | |
download | binaryen-1b0d724fd5938931e6924941641dd8924ad49938.tar.gz binaryen-1b0d724fd5938931e6924941641dd8924ad49938.tar.bz2 binaryen-1b0d724fd5938931e6924941641dd8924ad49938.zip |
Handle invokes of invalid function pointers. See #14174 (#3951)
PostEmscripten will turn an invoke of a constant function
pointer index into a direct call. However, due to UB it is possible to
have invalid function pointers, and we should not crash on that
(and do nothing to optimize, of course).
Mostly whitespace; to avoid deep nesting, I added more
early returns.
Diffstat (limited to 'scripts/test/wasm2js.py')
0 files changed, 0 insertions, 0 deletions