We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cd012f commit 270e466Copy full SHA for 270e466
Makefile.am
@@ -64,3 +64,17 @@ doc-clean:
64
65
pkgconfigdir = $(libdir)/pkgconfig
66
pkgconfig_DATA = tesseract.pc
67
+
68
+# fuzzer-api is used for fuzzing tests.
69
+# They are run by OSS-Fuzz https://oss-fuzz.com/, but can also be run locally.
70
+# Note: -fsanitize=fuzzer currently requires the clang++ compiler.
71
+fuzzer-api: all
72
+fuzzer-api: $(top_srcdir)/unittest/fuzzers/fuzzer-api.cpp
73
+ $(CXX) $(CXXFLAGS) -g -fsanitize=fuzzer \
74
+ -I $(top_srcdir)/src/api \
75
+ -I $(top_srcdir)/src/ccmain \
76
+ -I $(top_srcdir)/src/ccstruct \
77
+ -I $(top_srcdir)/src/ccutil \
78
+ -I src/api \
79
+ $< \
80
+ src/api/.libs/libtesseract.a $(LEPTONICA_LIBS) $(libarchive_LIBS) -o $@
0 commit comments