Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Avoid running the fuzzer if there are no functions to fuzz #11933

Closed

Conversation

yuandagits
Copy link
Contributor

Summary:
There are edge cases when the input to the fuzzer results in no signatures to fuzz due to combination of skipped functions and skipped input types. This causes the fuzzer to fail when it tries to generate an expression, specifically failing in ExpressionFuzzer::fuzzReturnType(), at VELOX_CHECK(!signatures_.empty(), "No function signature available.");.

Instead of failing the fuzzer at fuzzing time, let's exit the fuzzer with a warning that there were no functions to even fuzz.

Differential Revision: D67153128

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 22, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67153128

Copy link

netlify bot commented Dec 22, 2024

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit abb8bf3
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/6776e6db48b58f0008943146

yuandagits added a commit to yuandagits/velox that referenced this pull request Dec 22, 2024
…bookincubator#11933)

Summary:

There are edge cases when the input to the fuzzer results in no signatures to fuzz due to combination of skipped functions and skipped input types. This causes the fuzzer to fail when it tries to generate an expression, specifically failing in `ExpressionFuzzer::fuzzReturnType()`, at VELOX_CHECK(!signatures_.empty(), "No function signature available.");. 

Instead of failing the fuzzer at fuzzing time, let's exit the fuzzer with a warning that there were no functions to even fuzz.

Differential Revision: D67153128
…bookincubator#11933)

Summary:

There are edge cases when the input to the fuzzer results in no signatures to fuzz due to combination of skipped functions and skipped input types. This causes the fuzzer to fail when it tries to generate an expression, specifically failing in `ExpressionFuzzer::fuzzReturnType()`, at VELOX_CHECK(!signatures_.empty(), "No function signature available.");. 

Instead of failing the fuzzer at fuzzing time, let's exit the fuzzer with a warning that there were no functions to even fuzz.

Reviewed By: xiaoxmeng

Differential Revision: D67153128
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D67153128

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in fa95c4e.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants