v8/test
Clemens Hammacher a5449b0fd6 [wasm] Stricter max memory check
If the maximum number of memory pages is raised using
--wasm-max-mem-pages, we might allocate more than kMaxInt bytes for
wasm memory. The byte length is stored as int in JSArrayBuffer, hence
this can lead to failures.
Thus, we now additially check against kMaxInt, and fail instantiation
if this check fails.

Drive-by: Add/fix more bounds checks.

R=ahaas@chromium.org
BUG=chromium:724846

Change-Id: Id8e1a1e13e15f4aa355ab9414b4b950510e5e88a
Reviewed-on: https://chromium-review.googlesource.com/509255
Reviewed-by: Andreas Haas <ahaas@chromium.org>
Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#45465}
2017-05-22 14:28:11 +00:00
..
benchmarks Use --opt instead of --crankshaft in tests. 2017-04-28 14:20:39 +00:00
cctest Revert "[Interpreter] Improve handling of a === true / false." 2017-05-22 13:14:44 +00:00
common [cleanup] Remove return after UNREACHABLE 2017-05-22 13:10:01 +00:00
debugger Revert "Revert "Reland "Introducing an event loop mechanism for d8.""" 2017-05-10 18:34:10 +00:00
fuzzer [wasm] Cleanup the wasm fuzzer corpus files. 2017-05-19 09:21:16 +00:00
inspector Add COMPONENT tags to OWNERS files where appropriate 2017-05-22 10:15:28 +00:00
intl Add COMPONENT tags to OWNERS files where appropriate 2017-05-22 10:15:28 +00:00
js-perf-test Revert "[Interpreter] Improve handling of a === true / false." 2017-05-22 13:14:44 +00:00
memory
message [asm.js] Report module linking failures to the console. 2017-05-19 11:31:12 +00:00
mjsunit [wasm] Stricter max memory check 2017-05-22 14:28:11 +00:00
mkgrokdump Replace sanitizers:deps with exe_and_shlib_deps (v8) 2017-05-19 21:52:47 +00:00
mozilla [asm.js] Widen test coverage to cctest and friends. 2017-03-28 08:00:40 +00:00
preparser
promises-aplus
test262 resolvedTimezone for Etc/UTC should be UTC per Ecma 402 2017-05-04 21:17:39 +00:00
unittests [cleanup] Remove return after UNREACHABLE 2017-05-22 13:10:01 +00:00
wasm-spec-tests MIPS: Add tests to be skipped because of NaN representation on MIPS 2017-05-22 10:42:01 +00:00
webkit [asm.js] Widen test coverage to message tests. 2017-03-29 08:42:32 +00:00
bot_default.gyp [wasm] Add wasm spec tests to the v8 test runner 2017-04-27 13:00:13 +00:00
bot_default.isolate [wasm] Add wasm spec tests to the v8 test runner 2017-04-27 13:00:13 +00:00
BUILD.gn [wasm] Add wasm spec tests to the v8 test runner 2017-04-27 13:00:13 +00:00
default.gyp [wasm] Add wasm spec tests to the v8 test runner 2017-04-27 13:00:13 +00:00
default.isolate [wasm] Add wasm spec tests to the v8 test runner 2017-04-27 13:00:13 +00:00
optimize_for_size.gyp
optimize_for_size.isolate [debugger] basic test infrastructure for new debugger test api. 2016-10-21 06:38:05 +00:00
perf.gyp
perf.isolate Remove SIMD.js from V8. 2017-02-14 06:57:25 +00:00