{"id":21602776,"url":"https://github.com/codeintelligencetesting/jazzer-clojure-example","last_synced_at":"2025-03-18T13:35:56.229Z","repository":{"id":103042220,"uuid":"445485817","full_name":"CodeIntelligenceTesting/jazzer-clojure-example","owner":"CodeIntelligenceTesting","description":"Demo project for fuzzing Clojure code","archived":false,"fork":false,"pushed_at":"2023-09-11T13:34:45.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-01-24T18:35:32.088Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-2.0","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":"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":"2022-01-07T10:39:42.000Z","updated_at":"2022-01-26T15:55:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"86fe870a-a7e5-42b6-93bc-e42c2f0f2e98","html_url":"https://github.com/CodeIntelligenceTesting/jazzer-clojure-example","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/CodeIntelligenceTesting%2Fjazzer-clojure-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeIntelligenceTesting%2Fjazzer-clojure-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeIntelligenceTesting%2Fjazzer-clojure-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeIntelligenceTesting%2Fjazzer-clojure-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeIntelligenceTesting","download_url":"https://codeload.github.com/CodeIntelligenceTesting/jazzer-clojure-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244232310,"owners_count":20420079,"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:17.671Z","updated_at":"2025-03-18T13:35:56.204Z","avatar_url":"https://github.com/CodeIntelligenceTesting.png","language":"Clojure","readme":"# Demo project for fuzzing Clojure code\n\nThis is a small demo project showcasing how\n[jazzer-clj](https://github.com/CodeIntelligenceTesting/jazzer-clj) can be used\nto fuzz-test Clojure code.\n\n## Usage\n\n### deps.edn\n\nBuild a fuzzing JAR with\n\n```shell\nclojure \"-T:build\" \"fuzzing-jar\"\n```\n\nThen run the fuzzer as follows:\n\n``` shell\njava -cp target/fuzzing.jar  com.code_intelligence.jazzer.Jazzer              \\\n     --target_class=jazzer_clojure_example.targets.SimpleExample\n```\n\nThis will run [Jazzer](https://github.com/CodeIntelligenceTesting/jazzer) as\nspecified in `deps.edn`, telling it to fuzz the `SimpleExample` target defined\nin [core.clj](src/jazzer_clojure_example/core.clj). Alternatively, you can run\nJazzer on the `JsonistaExample` to fuzz Metosin's excellent JSON library (which\nwe've chosen arbitrarily to demonstrate how to test libraries):\n\n``` shell\nmkdir corpus-jsonista\njava -cp target/fuzzing.jar  com.code_intelligence.jazzer.Jazzer              \\\n       --target_class=jazzer_clojure_example.targets.JsonistaExample          \\\n       corpus-jsonista\n```\n\nNote the additional argument `corpus-jsonista` at the end. This tells Jazzer to\nstore all generated inputs that it considers useful into the `corpus-jsonista`\ndirectory in this project. Storing a corpus this way is useful if you want to be\nable to interrupt the fuzzer and resume it later without having to redo a lot of\nwork: it will more or less continue from the state where you stopped it. (Check\nout the files in the corpus after running the fuzzer for a while! Most of them\nwill contain somewhat creative JSON data that the fuzzer has come up with.)\n\nSee the [Jazzer homepage](https://github.com/CodeIntelligenceTesting/jazzer) for\nmore details about the fuzzer and how to configure it. Happy fuzzing!\n\n\n### Leiningen + Docker\n\nThere is also an example leiningen target which builds the project without\njazzer as a dependency, for use with the jazzer docker images:\n\nBuild a JAR with `lein uberjar`. Then run the fuzzer on it as follows:\n\n``` shell\ndocker run -v $PWD:/fuzzing cifuzz/jazzer                                               \\\n       --cp=/fuzzing/target/jazzer-clojure-example-0.1.0-SNAPSHOT-standalone.jar        \\\n       --target-class=jazzer_clojure_example.targets.SimpleExample\n```\n\nAlternatively, you can run Jazzer on the `JsonistaExample`:\n\n``` shell\ndocker run -v $PWD:/fuzzing cifuzz/jazzer                                               \\\n       --cp=/fuzzing/target/jazzer-clojure-example-0.1.0-SNAPSHOT-standalone.jar        \\\n       --target-class=jazzer_clojure_example.targets.JsonistaExample                    \\\n       /fuzzing/corpus-jsonista\n```\n\n## License\n\nCopyright © 2022 Code Intelligence GmbH\n\nThis program and the accompanying materials are made available under the\nterms of the Eclipse Public License 2.0 which is available at\nhttp://www.eclipse.org/legal/epl-2.0.\n\nThis Source Code may also be made available under the following Secondary\nLicenses when the conditions for such availability set forth in the Eclipse\nPublic License, v. 2.0 are satisfied: GNU General Public License as published by\nthe Free Software Foundation, either version 2 of the License, or (at your\noption) any later version, with the GNU Classpath Exception which is available\nat https://www.gnu.org/software/classpath/license.html.\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://www.code-intelligence.com\"\u003e\u003cimg src=\"https://www.code-intelligence.com/hubfs/Logos/CI%20Logos/CI_Header_GitHub_quer.jpeg\" height=50px alt=\"Code Intelligence logo\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeintelligencetesting%2Fjazzer-clojure-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeintelligencetesting%2Fjazzer-clojure-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeintelligencetesting%2Fjazzer-clojure-example/lists"}