diff options
author | Alon Zakai <alonzakai@gmail.com> | 2017-12-14 20:23:12 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-14 20:23:12 -0600 |
commit | dc2c05153c57b55fdd949a8827d4c8f648db8484 (patch) | |
tree | 3f588afde5a594d9c293a121189e9002713679be /test/crash/use_var_outside_func.wasm | |
parent | 183be2f02636335ba1253e00ee942fb1e69cffe5 (diff) | |
download | binaryen-dc2c05153c57b55fdd949a8827d4c8f648db8484.tar.gz binaryen-dc2c05153c57b55fdd949a8827d4c8f648db8484.tar.bz2 binaryen-dc2c05153c57b55fdd949a8827d4c8f648db8484.zip |
Fix 2 binary fuzz bugs (#1323)
* Check if there is a currFunction before using it (we need it for some stacky code; a valid wasm wouldn't need a function in that location anyhow, as what can be put in a memory/table offset is very limited).
* Huge alignment led us to do a power of 2 shift that is undefined behavior.
Also adds a test facility to check we don't crash on testcases.
Diffstat (limited to 'test/crash/use_var_outside_func.wasm')
-rw-r--r-- | test/crash/use_var_outside_func.wasm | bin | 0 -> 871 bytes |
1 files changed, 0 insertions, 0 deletions
diff --git a/test/crash/use_var_outside_func.wasm b/test/crash/use_var_outside_func.wasm Binary files differnew file mode 100644 index 000000000..f91794845 --- /dev/null +++ b/test/crash/use_var_outside_func.wasm |