summaryrefslogtreecommitdiff
path: root/src/js/binaryen.js-post.js
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2023-03-13 10:37:54 -0700
committerGitHub <noreply@github.com>2023-03-13 17:37:54 +0000
commitb280366c6e4f81d9483aed7c38c957257ac3396b (patch)
tree8af89bda155589201c81c0d0dfb0ad1a935014a9 /src/js/binaryen.js-post.js
parent5c408e22badb4b611155fd3a3d07000538e47341 (diff)
downloadbinaryen-b280366c6e4f81d9483aed7c38c957257ac3396b.tar.gz
binaryen-b280366c6e4f81d9483aed7c38c957257ac3396b.tar.bz2
binaryen-b280366c6e4f81d9483aed7c38c957257ac3396b.zip
Fuzzer: Limit array sizes (#5569)
Even with a 1% chance of a huge array, there is a second problem aside from hitting an allocation failure, which is DoS - building such a huge array of Literals takes noticeable time in the fuzzer. Instead, just limit array max sizes, which is consistent with what we do for struct sizes etc.
Diffstat (limited to 'src/js/binaryen.js-post.js')
0 files changed, 0 insertions, 0 deletions