summaryrefslogtreecommitdiff
path: root/test/run-tests.py
diff options
context:
space:
mode:
authorBen Smith <binji@chromium.org>2020-05-11 22:09:09 -0700
committerGitHub <noreply@github.com>2020-05-11 22:09:09 -0700
commitfad5a2dbdba5d98a91c4a2dea24bbff3b565e733 (patch)
treece655b1677d8f28e8ae8298d31b5d366d29474b2 /test/run-tests.py
parent58b2833ef1705e654ed14a0a55200726b9fcde80 (diff)
downloadwabt-fad5a2dbdba5d98a91c4a2dea24bbff3b565e733.tar.gz
wabt-fad5a2dbdba5d98a91c4a2dea24bbff3b565e733.tar.bz2
wabt-fad5a2dbdba5d98a91c4a2dea24bbff3b565e733.zip
Prevent large allocation in br_table instruction (#1415)
The binary reader tries to allocate a vector for all of the branch targets, but wasn't checking whether the length was excessively long. There's already a function to do this: `ReadCount`, which errors out if the count is longer than the section (this assumes each element requires at least one byte). Fixes issue #1386.
Diffstat (limited to 'test/run-tests.py')
0 files changed, 0 insertions, 0 deletions