• Clemens Hammacher's avatar
    [wasm] Check for UTF-8 validity of section names · 81c7135c
    Clemens Hammacher authored
    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: 's avatarAndreas Rossberg <rossberg@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#44550}
    81c7135c
Name
Last commit
Last update
..
api Loading commit data...
asmjs Loading commit data...
base Loading commit data...
compiler Loading commit data...
compiler-dispatcher Loading commit data...
heap Loading commit data...
interpreter Loading commit data...
libplatform Loading commit data...
wasm Loading commit data...
zone Loading commit data...
BUILD.gn Loading commit data...
DEPS Loading commit data...
cancelable-tasks-unittest.cc Loading commit data...
char-predicates-unittest.cc Loading commit data...
counters-unittest.cc Loading commit data...
eh-frame-iterator-unittest.cc Loading commit data...
eh-frame-writer-unittest.cc Loading commit data...
locked-queue-unittest.cc Loading commit data...
object-unittest.cc Loading commit data...
register-configuration-unittest.cc Loading commit data...
run-all-unittests.cc Loading commit data...
source-position-table-unittest.cc Loading commit data...
test-utils.cc Loading commit data...
test-utils.h Loading commit data...
unicode-unittest.cc Loading commit data...
unittests.gyp Loading commit data...
unittests.isolate Loading commit data...
unittests.status Loading commit data...
value-serializer-unittest.cc Loading commit data...