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/control_flow.cpp | |
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/control_flow.cpp')
0 files changed, 0 insertions, 0 deletions