summaryrefslogtreecommitdiff
path: root/scripts/fuzz_opt.py
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2024-04-29 13:43:39 -0700
committerGitHub <noreply@github.com>2024-04-29 13:43:39 -0700
commit497ffe211d68debcca05bf67e8439206db100cd3 (patch)
treed1deaf2cfb0be46a1878f8c6af84bbf8149758b7 /scripts/fuzz_opt.py
parent8c99af063794e022f22dfb013f99ec25857ace5f (diff)
downloadbinaryen-497ffe211d68debcca05bf67e8439206db100cd3.tar.gz
binaryen-497ffe211d68debcca05bf67e8439206db100cd3.tar.bz2
binaryen-497ffe211d68debcca05bf67e8439206db100cd3.zip
[Strings] Limit string allocations like we do arrays (#6562)
When we concat strings, check if their length exceeds a reasonable limit. (We do not need to do this for string.new as that reads from an array, which is already properly limited.) This avoids very slow pauses in the fuzzer (that sometimes OOM).
Diffstat (limited to 'scripts/fuzz_opt.py')
0 files changed, 0 insertions, 0 deletions