summaryrefslogtreecommitdiff
path: root/test/binaryen.js/sieve.js
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2021-01-14 01:52:03 +0900
committerGitHub <noreply@github.com>2021-01-14 01:52:03 +0900
commitf882781c4bebba1625a745c2b19dc7f8e63aa531 (patch)
treec0d3d1edba086db067657c906b1506e0564a55bf /test/binaryen.js/sieve.js
parentdc7184afcbdcc72d0a6d66e2b36fc5857050dd87 (diff)
downloadbinaryen-f882781c4bebba1625a745c2b19dc7f8e63aa531.tar.gz
binaryen-f882781c4bebba1625a745c2b19dc7f8e63aa531.tar.bz2
binaryen-f882781c4bebba1625a745c2b19dc7f8e63aa531.zip
Fix an index error in ArenaVectorBase (#3486)
Because `resize()` sets `usedElements` to its argument, we were accessing `data[usedElements]`, which can be outside of allocated memory depending the internal state, i.e., `allocatedElements`'s value. It is hard to come up with a test case for this because apparently the failure condition depends on the vector's internal state.
Diffstat (limited to 'test/binaryen.js/sieve.js')
0 files changed, 0 insertions, 0 deletions