{"id":18786509,"url":"https://github.com/tetsuok/libfuzzer-exercise-macos","last_synced_at":"2025-12-22T07:30:14.340Z","repository":{"id":146612750,"uuid":"85414854","full_name":"tetsuok/libfuzzer-exercise-macos","owner":"tetsuok","description":null,"archived":false,"fork":false,"pushed_at":"2017-03-18T18:09:18.000Z","size":6,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-15T05:51:38.349Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tetsuok.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-03-18T16:17:19.000Z","updated_at":"2023-11-27T13:10:03.000Z","dependencies_parsed_at":"2023-04-19T01:39:15.334Z","dependency_job_id":null,"html_url":"https://github.com/tetsuok/libfuzzer-exercise-macos","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tetsuok%2Flibfuzzer-exercise-macos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tetsuok%2Flibfuzzer-exercise-macos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tetsuok%2Flibfuzzer-exercise-macos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tetsuok%2Flibfuzzer-exercise-macos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tetsuok","download_url":"https://codeload.github.com/tetsuok/libfuzzer-exercise-macos/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239703095,"owners_count":19683205,"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-07T20:51:46.213Z","updated_at":"2025-12-22T07:30:14.271Z","avatar_url":"https://github.com/tetsuok.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"libfuzzer-exercise-macos\n========================\n\nThis repo holds the scripts to setup\n[libFuzzer](http://llvm.org/docs/LibFuzzer.html) on macOS.\n\n### Setup\n\n```\n$ make install\n$ make check # to make sure libFuzzer can be used\n```\n\n### Fuzz target\n\nWrite a function to do fuzzing your API.\n\n```\nextern \"C\" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {\n  TestYourAPI(Data, Size);\n  return 0;\n}\n```\n\n\nCompile with `-fsanitize=address -fsanitize-coverage=trace-pc-guard`,\nlinking with `libFuzzer.a`.\n\n```\n$ ./clang-driver -std=c++11 -g -fno-omit-frame-pointer -fsanitize=address -fsanitize-coverage=trace-pc-guard //path/to/your_fuzzer.cc libFuzzer.a -o your_fuzzer\n$ ./your_fuzzer -max_total_time=300 # the fuzzer will run indefinitely if without bugs\n```\n\nSee test/test_fuzzer.cc as an example.\n\n\nSee \u003chttp://llvm.org/docs/LibFuzzer.html\u003e for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftetsuok%2Flibfuzzer-exercise-macos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftetsuok%2Flibfuzzer-exercise-macos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftetsuok%2Flibfuzzer-exercise-macos/lists"}