Last active
November 18, 2022 23:40
-
-
Save samueleresca/75db3e31839eef9913543691c85f77c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "examples/libfuzzer/libfuzzer_example.pb.h" | |
#include "port/protobuf.h" | |
#include "src/libfuzzer/libfuzzer_macro.h" | |
protobuf_mutator::protobuf::LogSilencer log_silincer; | |
// ... | |
// This is the fuzz target | |
DEFINE_BINARY_PROTO_FUZZER(const libfuzzer_example::Msg& message) { | |
// The fuzzed message is accessible from the target. | |
std::cerr << message.DebugString() << "\n"; | |
abort(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment