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

Add support for rejecting invalid inputs #245

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KanishAnand
Copy link

@KanishAnand KanishAnand commented Mar 7, 2024

Adds support to reject storing invalid inputs in corpus. There is an ongoing discussion about how to support this while preserving backward compatibility.

This PR adds two ways to reject invalid inputs:

  1. Defining LIBPROTOBUFMUTATOR_ENABLE_RETURN_CODE via the build system or #defineing it before including libfuzzer_macro.h.
  2. Using the DEFINE_PROTO_FUZZER_RET macro instead of DEFINE_PROTO_FUZZER.

@KanishAnand KanishAnand marked this pull request as ready for review May 30, 2024 15:48
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.

None yet

1 participant