v8/test/unittests/wasm
Andreas Haas 0ef8da2664 [wasm] Check code section bytes in the streaming decoder
The streaming decoder allocates the whole section buffer of the code
section when it reads the section length of the code section. Therefore
we have to check that the different parts of the code section actually
use all the bytes, and that the different parts of the code section do
not need more bytes than available. The check that all bytes are used
was missing in the case where the code section contained zero functions.

In addition, this CL adds some tracing to the streaming decoder which
may be useful in future debugging.

R=clemensh@chromium.org

Bug: chromium:783595
Change-Id: Icf056c25a3000b4a08a791939dab0ccde9fc3f80
Reviewed-on: https://chromium-review.googlesource.com/768788
Commit-Queue: Andreas Haas <ahaas@chromium.org>
Reviewed-by: Clemens Hammacher <clemensh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#49380}
2017-11-15 12:42:54 +00:00
..
control-transfer-unittest.cc [wasm] [test] [cleanup] Add missing undefs 2017-09-11 12:09:50 +00:00
decoder-unittest.cc [wasm][cleanup] Use enums for template parameter values instead of bool 2017-10-16 17:03:41 +00:00
function-body-decoder-unittest.cc [wasm] Support block parameters 2017-10-24 11:44:26 +00:00
leb-helper-unittest.cc [wasm][cleanup] Use enums for template parameter values instead of bool 2017-10-16 17:03:41 +00:00
loop-assignment-analysis-unittest.cc [wasm] [test] [cleanup] Add missing undefs 2017-09-11 12:09:50 +00:00
module-decoder-unittest.cc [wasm] Enforce WASM function body size limitations in module decoder path. 2017-10-23 15:42:52 +00:00
OWNERS Add eholk to Wasm-related OWNERS files 2017-08-10 18:58:00 +00:00
streaming-decoder-unittest.cc [wasm] Check code section bytes in the streaming decoder 2017-11-15 12:42:54 +00:00
trap-handler-unittest.cc Reland "Reland "[wasm] trap handlers: fall back on old signal handler"" 2017-10-11 20:49:45 +00:00
wasm-heap-unittest.cc [jumbo] add unittests jumbo support 2017-09-28 22:19:40 +00:00
wasm-macro-gen-unittest.cc [wasm] [test] [cleanup] Add missing undefs 2017-09-11 12:09:50 +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] [test] [cleanup] Add missing undefs 2017-09-11 12:09:50 +00:00