v8/test/unittests/wasm
Clemens Hammacher 81c7135c84 [wasm] Check for UTF-8 validity of section names
According to the spec, section names must be valid UTF-8. This CL adds
a check for that.
Imported and exported names were already checked before.
In order to use the {consume_string} function from the
WasmSectionIterator, it moved it out of the ModuleDecoder into the
anonymous namespace. It now also gets a name for the string to be
parsed, for better error messages.

R=rossberg@chromium.org

Change-Id: I20b1ddb0bd1c7ada237d8303951073310fe1c714
Reviewed-on: https://chromium-review.googlesource.com/470207
Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
Reviewed-by: Andreas Rossberg <rossberg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#44550}
2017-04-11 08:52:53 +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 [wasm] Check for UTF-8 validity of section names 2017-04-11 08:52:53 +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