Skip to main content

libfuzzer

This is raw bindings for libfuzzer which works as a library.

Example:

#!/usr/bin/env python3

from libfuzzer import *
import os
import sys

Counters = CreateLibFuzzerCounters(4096)

def TestOneInput(input):
    # Instrument the code manually.
    l = len(input)

    if l == 0:
        Counters[0] += 1
    elif l == 8:
        Counters[1] += 1
    elif l == 16:
        Counters[2] += 1
        os.abort()
    else:
        Counters[3] += 1
    
    Counters[4] += 1
    return 0

def Initialize(argv):
    return 0

def Mutator(data, max_size, seed):
    return LLVMFuzzerMutate(data, max_size)

def CrossOver(data1, data2, out, seed):
    return 0

# If you are using -fork=1, make sure run it like `python3 ./example.py` or
# `./example.py` instead of `python3 example.py`.
LLVMFuzzerRunDriver(sys.argv, TestOneInput, Initialize, Mutator, CrossOver, Counters)

Metadata

Release files for libfuzzer 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for libfuzzer 0.0.2
File Size Uploaded Provenance Actions
libfuzzer-0.0.2.tar.gz 4.3 kB Without provenance Details for libfuzzer-0.0.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for libfuzzer 0.0.2
File Actions
libfuzzer-0.0.2-py3-none-manylinux1_x86_64.whl Python 3 none Linux glibc 2.5+ x86-64 Details for libfuzzer-0.0.2-py3-none-manylinux1_x86_64.whl
libfuzzer-0.0.2-py3-none-manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64, Linux glibc 2.5+ x86-64 Details for libfuzzer-0.0.2-py3-none-manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
libfuzzer-0.0.2-py3-none-manylinux1_i686.whl Python 3 none Linux glibc 2.5+ x86-32 Details for libfuzzer-0.0.2-py3-none-manylinux1_i686.whl
libfuzzer-0.0.2-py3-none-manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl Python 3 none Linux glibc 2.17+ x86-32, Linux glibc 2.5+ x86-32 Details for libfuzzer-0.0.2-py3-none-manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl

Total release size: 942.3 kB

Release files / libfuzzer-0.0.2.tar.gz

Download URL libfuzzer-0.0.2.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
65dc411725d1dc657bf38c7e467d10ea667c826809e9e93d4286a8102ce7a853
BLAKE2b-256 checksum
How to use checksums
1f4721773a80ddc910fe6b64e18752bec80325147e3e43d5dcfe4a3a1906ae96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

Release files / libfuzzer-0.0.2-py3-none-manylinux1_x86_64.whl

Download URL libfuzzer-0.0.2-py3-none-manylinux1_x86_64.whl
Size 229.1 kB
Tags Linux glibc 2.5+ x86-64 Python 3
SHA-256 checksum
How to use checksums
423d62ccda49b87b329bf39079edde30d1d4bf9dfaf620d11b3f59961793e07e
BLAKE2b-256 checksum
How to use checksums
75d9b9bb4f793dd15d39bfa7cea0cfe472cf084e96b2ffe445fb9c03cf37e44f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

Release files / libfuzzer-0.0.2-py3-none-manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL libfuzzer-0.0.2-py3-none-manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 229.7 kB
Tags Linux glibc 2.17+ x86-64 Linux glibc 2.5+ x86-64 Python 3
SHA-256 checksum
How to use checksums
057aac95a8d153bcb241f93de18fe36bc81c72a9334508fc99b2c5a0adf92172
BLAKE2b-256 checksum
How to use checksums
08a4de02f12ac06cc33fffc94c32f9de888bae3e2acd46a519721dd0826d02a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

Release files / libfuzzer-0.0.2-py3-none-manylinux1_i686.whl

Download URL libfuzzer-0.0.2-py3-none-manylinux1_i686.whl
Size 239.3 kB
Tags Linux glibc 2.5+ x86-32 Python 3
SHA-256 checksum
How to use checksums
c4128d1b4d79f712ec5bb2a1e757ba2447c9d4296a90be00060dfa5559aae6dd
BLAKE2b-256 checksum
How to use checksums
67f3d74dbc2a75a656e93e10448e4b678e228c1b0c7b954a764239d84b19c2e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

Release files / libfuzzer-0.0.2-py3-none-manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl

Download URL libfuzzer-0.0.2-py3-none-manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Size 239.9 kB
Tags Linux glibc 2.17+ x86-32 Linux glibc 2.5+ x86-32 Python 3
SHA-256 checksum
How to use checksums
27ca4d059ec8d70acdc2d7bc3b902dd1dda57fb48280d29f77c998fe964a924c
BLAKE2b-256 checksum
How to use checksums
c5d2a8a97263d6b52cde18dcad6f25a92bfd9a1e6e55a7e4fe3d71ee4e5f0797
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

Security for libfuzzer 0.0.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

5 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page