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

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