Skip to content

Fuzzing: Handle instantiation errors in ClusterFuzz#7166

Merged
kripken merged 2 commits intoWebAssembly:mainfrom
kripken:instantiate.error
Jan 7, 2025
Merged

Fuzzing: Handle instantiation errors in ClusterFuzz#7166
kripken merged 2 commits intoWebAssembly:mainfrom
kripken:instantiate.error

Conversation

@kripken
Copy link
Copy Markdown
Member

@kripken kripken commented Dec 19, 2024

If the module has an invalid segment offset, for example, it will error. We
should not error in the fuzzer on such rare cases.

Also add logging of the actual error, which matches what we do for
errors elsewhere, and makes debugging easier:

console.log('exception thrown: ' + e);

As a result another place needs to look for the prefix now, and not the
entire string (since we append the error contents).

@kripken kripken requested a review from tlively December 19, 2024 22:49
@kripken
Copy link
Copy Markdown
Member Author

kripken commented Jan 7, 2025

friendly new year's ping @tlively (no rush)

@kripken kripken merged commit f9d78d8 into WebAssembly:main Jan 7, 2025
@kripken kripken deleted the instantiate.error branch January 7, 2025 19:05
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.

2 participants