sfxsfl 81bd2e02f4 first code checkin 10 mesi fa
..
README.md 81bd2e02f4 first code checkin 10 mesi fa
adaptmap_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
affine_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
barcode_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
barcode_fuzzer_seed_corpus.zip 81bd2e02f4 first code checkin 10 mesi fa
baseline_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
bilateral_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
bilinear_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
binarize_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
blend_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
boxfunc3_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
boxfunc4_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
boxfunc5_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
boxfunc_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
ccbord_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
ccthin_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
checkerboard_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
classapp_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
colorfill_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
colorquant_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
compare_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
dewarp_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
edge_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
enhance_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
fhmtgen_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
finditalic_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
flipdetect_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
fpix2_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
general_corpus.zip 81bd2e02f4 first code checkin 10 mesi fa
graphics_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
graymorph_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
grayquant_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
jpegiostub_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
kernel_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
leptfuzz.h 81bd2e02f4 first code checkin 10 mesi fa
mask_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
maze_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
morph_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
morphapp_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
oss-fuzz-build.sh 81bd2e02f4 first code checkin 10 mesi fa
pageseg_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
paintcmap_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
pix1_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
pix3_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
pix4_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
pix_orient_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
pix_rotate_shear_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
pixa_recog_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
pixa_recog_fuzzer_seed_corpus.zip 81bd2e02f4 first code checkin 10 mesi fa
pixconv_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa
recog_basic_fuzzer.cc 81bd2e02f4 first code checkin 10 mesi fa

README.md

Leptonica fuzzing

This directory contains fuzzing tests for Leptonica. Each test is in a separate source file *_fuzzer.cc.

Normally these fuzzing tests are run by OSS-Fuzz, but can also be run locally.

Local build instructions

Local builds require the clang compiler. Use clang-10 on Debian GNU Linux, which can be installed using

sudo apt-get install clang-10

To build:

./configure CC=clang-10 CXX=clang++-10
make fuzzers CXX=clang++-10

Running local fuzzers

Each local fuzzer can be run as in the following example.

# Show command line syntax.
./barcode_fuzzer -help=1

# Run the fuzzer.
./barcode_fuzzer