fd2bf837a5
When reading malformed input, the length of variable-length types can be very large. Computing operand length with this and adding it to PC will overflow and screw up decode. This patch switches to unsigned int for arity and lengths, terminates loop analysis on error, adds overflow checking to BranchTableOperand, and adds a unit test. Review-Url: https://codereview.chromium.org/2052623003 Cr-Commit-Position: refs/heads/master@{#37301} |
||
---|---|---|
.. | ||
asm-types-unittest.cc | ||
ast-decoder-unittest.cc | ||
control-transfer-unittest.cc | ||
decoder-unittest.cc | ||
encoder-unittest.cc | ||
leb-helper-unittest.cc | ||
loop-assignment-analysis-unittest.cc | ||
module-decoder-unittest.cc | ||
OWNERS | ||
switch-logic-unittest.cc | ||
wasm-macro-gen-unittest.cc |