{"id":16836984,"url":"https://github.com/vanhauser-thc/libfuzzer-cov","last_synced_at":"2025-03-23T15:31:35.654Z","repository":{"id":80304410,"uuid":"258235525","full_name":"vanhauser-thc/libfuzzer-cov","owner":"vanhauser-thc","description":"Get actually nice HTML coverage overview on libfuzzer runs","archived":false,"fork":false,"pushed_at":"2023-04-21T11:54:49.000Z","size":32,"stargazers_count":29,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-18T21:54:26.406Z","etag":null,"topics":["coverage","fuzzing","libfuzzer"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vanhauser-thc.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":"2020-04-23T14:41:11.000Z","updated_at":"2024-12-20T08:09:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"a8c8e361-7a86-49b2-9b0c-b8ca54615932","html_url":"https://github.com/vanhauser-thc/libfuzzer-cov","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/vanhauser-thc%2Flibfuzzer-cov","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanhauser-thc%2Flibfuzzer-cov/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanhauser-thc%2Flibfuzzer-cov/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanhauser-thc%2Flibfuzzer-cov/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vanhauser-thc","download_url":"https://codeload.github.com/vanhauser-thc/libfuzzer-cov/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245122843,"owners_count":20564387,"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":["coverage","fuzzing","libfuzzer"],"created_at":"2024-10-13T12:15:40.714Z","updated_at":"2025-03-23T15:31:35.645Z","avatar_url":"https://github.com/vanhauser-thc.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# coverage for libfuzzer\n\nlibfuzzer is good but checking the coverage the tools are not as advanced as\nwhat gcc has available.\n\nhence these tools to have gcc coverage on libfuzzer fuzzing targets\n\nNOTE: by default clang/clang++ is used. if you want to use gcc/g++ instead\nthen specify the -g option in cov-build.sh and cov-generate.sh, and edit\ncov-compile.sh to use the g++ line instead.\n\n# how-to\n\n## step 1: build the target\n\nbuild the target library for coverage with `cov-build.sh`.\nusually enough is a \n```\n$ cov-build.sh ./configure --disable-shared\n```\n\n## step 2: build the coverage tool\n\nsame as the fuzz.cc harness to fuzz, we need to have a tool built to to get the\ncoverage. this is easy:\n\nExecute with your fuzzing harness: `./cov-compile.sh fuzz.cc .libs/libfoo.a -Iinclude -I.` \n\nBasically the same options you needed to compile your fuzzing harness but omit `-o outputfile`.\n\n## step 3: gather the coverage\n\nsimply run the `cov-generate.sh` script with the libfuzzer queue directory and\nthe compiled `cov` binary (you must still be in the source top directory of the\nfor coverage compiled target):\n\n```\n$ cov-generate.sh ../libTARGET/queue ./cov\n```\n\n## step 4: view the coverage\n\nopen a webbrowser for `./report/index.html`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanhauser-thc%2Flibfuzzer-cov","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvanhauser-thc%2Flibfuzzer-cov","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanhauser-thc%2Flibfuzzer-cov/lists"}