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
Release history Release notifications | RSS feed
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 hashes)
Built Distributions
Close
Hashes for libfuzzer-0.0.1-py3-none-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44ebe6773b1f1e297fcd6dac4e8448c4d9e1061c007afa966f0b3439766ebb58 |
|
MD5 | 4a013b8364a701b6ebee68ea535ccb65 |
|
BLAKE2b-256 | dc8a8c3f7b9b6ae78513fadf7d9f171211c4fb1d75a64c178d911a9eb0c6b517 |
Close
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 |
Close
Hashes for libfuzzer-0.0.1-py3-none-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfb8cf3c7b5ee2bcccfb511159f1285b9f5815618710eb32c9fb792742874dbf |
|
MD5 | 8607d5f8b5e2a62cca2d291bf23a62de |
|
BLAKE2b-256 | 990953b877c6563f9a78d51bff3693c0e5bfa7725574c885bb468fe9a2135d39 |
Close
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 |