summaryrefslogtreecommitdiff
path: root/src/shell-interface.h
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2023-04-11 10:47:30 -0700
committerGitHub <noreply@github.com>2023-04-11 17:47:30 +0000
commit18898347e7c4ceb86988bdb8594160883f7886f0 (patch)
treead934605a71cc8a3638b5388ae72c57cce08165f /src/shell-interface.h
parent160dda0aa5ecc8252c5862cd937157296d9015cb (diff)
downloadbinaryen-18898347e7c4ceb86988bdb8594160883f7886f0.tar.gz
binaryen-18898347e7c4ceb86988bdb8594160883f7886f0.tar.bz2
binaryen-18898347e7c4ceb86988bdb8594160883f7886f0.zip
Add a name hint to getValidName() (#5653)
Without the hint, we always look for a valid name using name$0, $1, $2, etc., starting from 0, and in some cases that can lead to quadratic behavior. Noticed on a testcase in the fuzzer that runs for over 24 seconds (I gave up at that point) but takes only 2 seconds with this.
Diffstat (limited to 'src/shell-interface.h')
0 files changed, 0 insertions, 0 deletions