summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2023-06-22 15:57:51 -0700
committerGitHub <noreply@github.com>2023-06-22 15:57:51 -0700
commit61f70af4bbe9831fe0bf1fc1fd8e9ec05a67e8a5 (patch)
tree331e170c143fc6f89560642fdc9b620b2fc3052a
parent7aeaf136fbb8b59c32250a563f1e2ef548c56032 (diff)
downloadbinaryen-61f70af4bbe9831fe0bf1fc1fd8e9ec05a67e8a5.tar.gz
binaryen-61f70af4bbe9831fe0bf1fc1fd8e9ec05a67e8a5.tar.bz2
binaryen-61f70af4bbe9831fe0bf1fc1fd8e9ec05a67e8a5.zip
CtorEval Fuzzer: Generalize export regex (#5778)
Just look for export names as "" with some other stuff in the middle. Missing from the old regex: spaces, parens, and probably more. Spaces and parens are used in the test suite, which is how this was noticed by the fuzzer.
-rwxr-xr-xscripts/fuzz_opt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/fuzz_opt.py b/scripts/fuzz_opt.py
index 3039e2bd8..f21747370 100755
--- a/scripts/fuzz_opt.py
+++ b/scripts/fuzz_opt.py
@@ -1263,7 +1263,7 @@ class CtorEval(TestCaseHandler):
# get the list of exports, so we can tell ctor-eval what to eval.
wat = run([in_bin('wasm-dis'), wasm] + FEATURE_OPTS)
- p = re.compile(r'^ [(]export "([\d\w$+-_:.]+)" [(]func')
+ p = re.compile(r'^ [(]export "(.*[^\\]?)" [(]func')
exports = []
for line in wat.splitlines():
m = p.match(line)