v8/test/unittests/wasm
Andreas Haas 72d5f3848e Terminate the decoding loop more gracefully.
The decoder has the assumption that it always holds that pc <= end.
However, in the FunctionBodyDecoder, end was set to start to terminate
the decoding loop. Thereby the assumption was violated, which caused a
crash. I set end to pc now to end the decoding loop, which preserves
the assumption and terminates the loop.

BUG=chromium:709741
TEST=unittests/FunctionBodyDecoderTest.Regression709741
R=clemensh@chromium.org

Change-Id: I5bfd61bdc4809fc16f12ca8611876c66a79aaa36
Reviewed-on: https://chromium-review.googlesource.com/472723
Commit-Queue: Andreas Haas <ahaas@chromium.org>
Reviewed-by: Clemens Hammacher <clemensh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#44524}
2017-04-10 14:02:42 +00:00
..
asm-types-unittest.cc [wasm] Fix more -Wsign-compare warnings. 2016-11-11 11:56:05 +00:00
control-transfer-unittest.cc [wasm] Remove non-standard kExprI8Const bytecode 2017-01-09 13:57:26 +00:00
decoder-unittest.cc [wasm] [decoder] Templatize decode function for unchecked decoding 2017-04-05 11:14:32 +00:00
function-body-decoder-unittest.cc Terminate the decoding loop more gracefully. 2017-04-10 14:02:42 +00:00
leb-helper-unittest.cc [wasm] [decoder] Templatize decode function for unchecked decoding 2017-04-05 11:14:32 +00:00
loop-assignment-analysis-unittest.cc [iwyu, wasm] Remove unallowed includes to objects-inl.h from wasm. 2017-02-13 15:05:37 +00:00
module-decoder-unittest.cc Separate function decoding counter into asm and wasm counters. 2017-03-28 14:27:42 +00:00
OWNERS Make clemensh owner (wasm, asmjs and general) 2017-01-13 10:20:44 +00:00
switch-logic-unittest.cc [asmjs] Move switch-logic.h to asmjs/ directory. 2016-10-10 17:57:47 +00:00
wasm-macro-gen-unittest.cc [gn] Enable stricter build flags 2017-03-17 15:18:18 +00:00
wasm-module-builder-unittest.cc [iwyu, wasm] Remove unallowed includes to objects-inl.h from wasm. 2017-02-13 15:05:37 +00:00
wasm-opcodes-unittest.cc [wasm] Use the official opcode names everywhere. 2017-01-20 13:28:29 +00:00