crossfuzz
Python harness for crossfuzz, a coverage-guided differential fuzzer across C, C++, Go, Java, JavaScript/TypeScript, Python, and Rust. The coordinator sends the same generated input to multiple implementations of the same function, collects coverage from every target, and flags any divergence in outputs.
This package is the Python side: it handles the shared-memory IPC, pipe protocol, and branch-arc coverage collection so you only have to write the target function.
Install
pip install crossfuzz
You also need the crossfuzz coordinator binary — see the
main repo for build/install instructions.
Quick start
Write a target script that calls crossfuzz.fuzz(your_function):
import crossfuzz
def my_target(data: bytes) -> bytes:
# Your code under test. Raise an exception to signal an error.
return data
crossfuzz.fuzz(my_target)
Point the coordinator at it from a crossfuzz.toml config:
[[target]]
name = "python_impl"
language = "python"
binary = "python3"
args = ["my_target.py"]
Then run the campaign with crossfuzz run crossfuzz.toml.
API
crossfuzz.fuzz(target, settings=None)— persistent fuzz loop.target(data: bytes) -> bytes.crossfuzz.filter(target, settings=None)— persistent filter loop.target(data: bytes) -> tuple[bytes, bool].crossfuzz.compare(target, settings=None)— custom comparator loop.target(input: bytes, names: list[str], outputs: list[bytes]) -> str.crossfuzz.Settings(instrument=True, warmup=0, transform=False)— configuration. Setinstrument=Falsefor thin HTTP-trigger harnesses where coverage comes from an instrumented server process.
Platform
POSIX only — the harness uses mmap and inherited file descriptors 3/4 to
talk to the coordinator. Windows is not supported.
License
MIT
Metadata
Release files for crossfuzz 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| crossfuzz-0.0.3.tar.gz | 5.8 kB | With provenance | Details for crossfuzz-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| crossfuzz-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for crossfuzz-0.0.3-py3-none-any.whl |
Total release size: 12.8 kB
Release files / crossfuzz-0.0.3.tar.gz
| Download URL | crossfuzz-0.0.3.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
04432dc10c7812c8c46b8b413146a6c9e13027b3bec5ee65fef6ae0c2b887d5f
|
|
BLAKE2b-256 checksum How to use checksums |
4bd71133d9c97bcd771d232a08a04b18d241c992bb9375ac504a3a559b1bbe91
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 26, 2026.
Transparency logRelease files / crossfuzz-0.0.3-py3-none-any.whl
| Download URL | crossfuzz-0.0.3-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
67cfdc50951ea622d3577c665ce30358bbb9f17448cc06308da8258fdf4fccd7
|
|
BLAKE2b-256 checksum How to use checksums |
527cd5fad0173e4bf1fdf9bf92d7724b0b1eaf7cdb94a315b3d8f9c85670e975
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 26, 2026.
Transparency logSecurity for crossfuzz 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for crossfuzz-0.0.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 26, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.