diff options
author | Heejin Ahn <aheejin@gmail.com> | 2021-01-14 01:52:03 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-14 01:52:03 +0900 |
commit | f882781c4bebba1625a745c2b19dc7f8e63aa531 (patch) | |
tree | c0d3d1edba086db067657c906b1506e0564a55bf /test/binaryen.js | |
parent | dc7184afcbdcc72d0a6d66e2b36fc5857050dd87 (diff) | |
download | binaryen-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')
0 files changed, 0 insertions, 0 deletions