Skip to main content

libfuzzer

Project description

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: bytes):
    # 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

# 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, Counters)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

libfuzzer-0.0.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distributions

libfuzzer-0.0.1-py3-none-manylinux1_x86_64.whl (228.0 kB view details)

Uploaded Python 3

libfuzzer-0.0.1-py3-none-manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (228.6 kB view details)

Uploaded Python 3 manylinux: glibc 2.17+ x86-64

libfuzzer-0.0.1-py3-none-manylinux1_i686.whl (238.2 kB view details)

Uploaded Python 3

libfuzzer-0.0.1-py3-none-manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (238.8 kB view details)

Uploaded Python 3 manylinux: glibc 2.17+ i686

File details

Details for the file libfuzzer-0.0.1.tar.gz.

File metadata

  • Download URL: libfuzzer-0.0.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for libfuzzer-0.0.1.tar.gz
Algorithm Hash digest
SHA256 153df33bdc3ebfb7ea4a8824ea7eab9d32ef592374131e6ddfd6e7750366627d
MD5 424aeb7ce0c0994f59448fb3f1c2c1c7
BLAKE2b-256 9da00b50397dc76e0db1a4ea6df6b8ed7e0ab3f9d3d957a644719532ef42aa56

See more details on using hashes here.

File details

Details for the file libfuzzer-0.0.1-py3-none-manylinux1_x86_64.whl.

File metadata

  • Download URL: libfuzzer-0.0.1-py3-none-manylinux1_x86_64.whl
  • Upload date:
  • Size: 228.0 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for libfuzzer-0.0.1-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 44ebe6773b1f1e297fcd6dac4e8448c4d9e1061c007afa966f0b3439766ebb58
MD5 4a013b8364a701b6ebee68ea535ccb65
BLAKE2b-256 dc8a8c3f7b9b6ae78513fadf7d9f171211c4fb1d75a64c178d911a9eb0c6b517

See more details on using hashes here.

File details

Details for the file libfuzzer-0.0.1-py3-none-manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for libfuzzer-0.0.1-py3-none-manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a218c5b9d850b83766fe94d3cb49e57c02b5c4a37d6d924308438c24fec2c647
MD5 31392a16ac5d003e9b4a36d264fa6d1d
BLAKE2b-256 9840553c37a41396100c300babb329bc92b3ee52e2a4ef46c0fbc27de152b681

See more details on using hashes here.

File details

Details for the file libfuzzer-0.0.1-py3-none-manylinux1_i686.whl.

File metadata

  • Download URL: libfuzzer-0.0.1-py3-none-manylinux1_i686.whl
  • Upload date:
  • Size: 238.2 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for libfuzzer-0.0.1-py3-none-manylinux1_i686.whl
Algorithm Hash digest
SHA256 bfb8cf3c7b5ee2bcccfb511159f1285b9f5815618710eb32c9fb792742874dbf
MD5 8607d5f8b5e2a62cca2d291bf23a62de
BLAKE2b-256 990953b877c6563f9a78d51bff3693c0e5bfa7725574c885bb468fe9a2135d39

See more details on using hashes here.

File details

Details for the file libfuzzer-0.0.1-py3-none-manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for libfuzzer-0.0.1-py3-none-manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 85bec5c925a066e8878ff93f7900cc369a4f2d210ae3143c8c65e338ca1b6136
MD5 754d15ac99ce806fc4468bfa3f3f9064
BLAKE2b-256 ca486e4addf311f0106f110eef13869962c4b1c515302cf185985e3db497d0a6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page