Skip to content

[NFC] CtorEval fuzzing: skip export names that may need escaping#8502

Merged
kripken merged 3 commits intoWebAssembly:mainfrom
kripken:ctor.fuzz.noescape
Mar 24, 2026
Merged

[NFC] CtorEval fuzzing: skip export names that may need escaping#8502
kripken merged 3 commits intoWebAssembly:mainfrom
kripken:ctor.fuzz.noescape

Conversation

@kripken
Copy link
Member

@kripken kripken commented Mar 20, 2026

Fuzzing them is not that important for now.

Fixes #8482

@kripken kripken requested a review from brendandahl March 20, 2026 18:19
@kripken kripken requested a review from a team as a code owner March 20, 2026 18:19
@kripken kripken requested review from tlively and removed request for a team March 20, 2026 18:19
# Avoid names that need escaping. Just allow simple names like func_256,
# which the fuzzer emits
# TODO: fix escaping in the tool and here
func_exports = [export for export in func_exports if re.fullmatch(r'^\w+$', export)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to look up \w, and it's not clear that "Unicode word characters" is exactly the class we want. Let's be more explicit and use [a-zA-Z0-9_] instead.

@kripken kripken merged commit 7113c49 into WebAssembly:main Mar 24, 2026
16 checks passed
@kripken kripken deleted the ctor.fuzz.noescape branch March 24, 2026 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

String escaping fuzz bug with wasm-metadce

2 participants