{"id":21602746,"url":"https://github.com/codeintelligencetesting/protobuf-mutator-example","last_synced_at":"2025-03-18T13:25:56.234Z","repository":{"id":247952321,"uuid":"810964200","full_name":"CodeIntelligenceTesting/protobuf-mutator-example","owner":"CodeIntelligenceTesting","description":"An example showing how libprotobuf-mutator can be used with cifuzz","archived":false,"fork":false,"pushed_at":"2024-07-12T12:27:15.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-11T10:48:48.037Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CodeIntelligenceTesting.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-05T17:22:54.000Z","updated_at":"2024-07-12T12:27:25.000Z","dependencies_parsed_at":"2024-07-11T14:13:46.639Z","dependency_job_id":"4ca03726-6608-4ae7-842f-8e06cb1e75ed","html_url":"https://github.com/CodeIntelligenceTesting/protobuf-mutator-example","commit_stats":null,"previous_names":["codeintelligencetesting/protobuf-mutator-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeIntelligenceTesting%2Fprotobuf-mutator-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeIntelligenceTesting%2Fprotobuf-mutator-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeIntelligenceTesting%2Fprotobuf-mutator-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeIntelligenceTesting%2Fprotobuf-mutator-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeIntelligenceTesting","download_url":"https://codeload.github.com/CodeIntelligenceTesting/protobuf-mutator-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244229532,"owners_count":20419642,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-24T19:14:13.258Z","updated_at":"2025-03-18T13:25:56.196Z","avatar_url":"https://github.com/CodeIntelligenceTesting.png","language":"C++","readme":"# protobuf-mutator-example\n\nThis example project shows how `libprotobuf-mutator` can be used with `cifuzz` to fuzz C++ code. The fuzzer input in this scenario is a protobuf message that is defined in `test/mutator_data.proto`. In the fuzz test `test/fuzztest.cpp`, we are using the `DEFINE_PROTO_FUZZER` macro to define a fuzz test that receives mutated protobuf messages from the `libprotobuf-mutator`. In addition to that, a post processor is defined in `test/post_processor.cpp` to ensure that mutated protobuf messages keep certain properties.\n\n\n### Build and run the fuzz test\n\n```sh\ncifuzz run fuzztest\n```\n\nThe fuzzer should be able to find the bug in less than a minute.\n\n\n### View the crashing input\n\nAll fuzzer inputs are stored in text form so that analyzing a crashing input is easy:\n\n```sh\n\u003e cat .cifuzz-findings/quirky_puma/crashing-input\nconfig1: true\nconfig2: -7654\npackets {\n  flags: 8\n}\npackets {\n  flags: 8\n}\npackets {\n  flags: 8\n}\npackets {\n  flags: 4227858431\n  data: \"BUG\"\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeintelligencetesting%2Fprotobuf-mutator-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeintelligencetesting%2Fprotobuf-mutator-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeintelligencetesting%2Fprotobuf-mutator-example/lists"}