binaryen/test/crash/use_var_outside_func.wasm
Alon Zakai dc2c05153c
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.
2017-12-14 20:23:12 -06:00

871 B