diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-11-06 19:54:07 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-11-06 19:54:07 -0800 |
commit | 414d7cc09edadde3bbef527a2568d9f56e0b9b44 (patch) | |
tree | b45c3b47002d949eeb3c1fed19b8d95ccc5006d2 | |
parent | 80e27d2fcba39ef96f3043f79e0fd3fb9e92241d (diff) | |
download | binaryen-414d7cc09edadde3bbef527a2568d9f56e0b9b44.tar.gz binaryen-414d7cc09edadde3bbef527a2568d9f56e0b9b44.tar.bz2 binaryen-414d7cc09edadde3bbef527a2568d9f56e0b9b44.zip |
make maxCallDepth more conservative
-rwxr-xr-x | check.py | 4 | ||||
-rw-r--r-- | src/wasm-interpreter.h | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -82,8 +82,8 @@ print '\n[ checking wasm-shell spec testcases... ]\n' if len(requested) == 0: #spec_tests = [] # XXX [os.path.join('spec', t) for t in sorted(os.listdir(os.path.join('test', 'spec')))] # 'address' : filed issue, test looks invalid - # 'switch': todo once stable - spec_tests = [os.path.join('spec', t + '.wast') for t in ['conversions', 'endianness', 'exports', 'f32_cmp', 'f32', 'f64_cmp', 'f64', 'float_exprs', 'forward', 'func_ptrs', 'functions', 'has_feature', 'i32', 'i64', 'imports', 'int_exprs', 'int_literals', 'left-to-right', 'memory_redundancy', 'memory_trap', 'names', 'resizing', 'runaway-recursion', 'select', 'store_retval', 'traps']] + # 'labels', 'switch': todo once switch is stable + spec_tests = [os.path.join('spec', t + '.wast') for t in ['conversions', 'endianness', 'exports', 'f32_cmp', 'f32', 'f64_cmp', 'f64', 'fac', 'float_exprs', 'forward', 'func_ptrs', 'functions', 'has_feature', 'i32', 'i64', 'imports', 'int_exprs', 'int_literals', 'labels', 'left-to-right', 'memory_redundancy', 'memory_trap', 'names', 'resizing', 'runaway-recursion', 'select', 'store_retval', 'traps']] else: spec_tests = requested[:] diff --git a/src/wasm-interpreter.h b/src/wasm-interpreter.h index 8d7e1c5ae..918b65f02 100644 --- a/src/wasm-interpreter.h +++ b/src/wasm-interpreter.h @@ -27,7 +27,7 @@ int32_t safe_ctz(int32_t v) { enum { pageSize = 64*1024, - maxCallDepth = 5000 + maxCallDepth = 250 }; // |