summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2022-08-06 18:35:30 -0400
committerTheodore Ts'o <tytso@mit.edu>2022-08-09 19:45:07 -0400
commit2869485be9b1b94b93a50589de52ca553e5a116d (patch)
treef5562f9f850f5a1788638fcc27c2627c9a758178 /Makefile.in
parent27504bcf89193d47d7632cde922a65e0c051be01 (diff)
downloade2fsprogs-2869485be9b1b94b93a50589de52ca553e5a116d.tar.gz
Build the fuzzers from oss-fuzz
The fuzzers from oss-fuzz in projects/e2fsprogs/fuzz (as of commit 78ecd3f07fca with some slight modifications for better error reporting) have been placed in the tests/fuzz directory and the configure script now supports a new option --enable-fuzzing which will build these fuzzers using clang's -fsanitize=fuzzer command line option. In general, some sanitizer such as --enable-addrsan or --enable-ubsan (to enable ASAN or UBSAN, respectively) should be enabled alongside --enable-fuzzing. A typical configure command to build the fuzzers might be: configure CC=clang CXX=clang++ CFLAGS=-g --enable-fuzzing --enable-addrsan Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in
index d412dfbc..79b71165 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -22,8 +22,8 @@ MKDIR_P = @MKDIR_P@
LIB_SUBDIRS=lib/et lib/ss $(E2P_LIB_SUBDIR) $(UUID_LIB_SUBDIR) \
$(BLKID_LIB_SUBDIR) $(SUPPORT_LIB_SUBDIR) $(EXT2FS_LIB_SUBDIR)
-PROG_SUBDIRS=e2fsck $(DEBUGFS_DIR) misc $(RESIZE_DIR) tests/progs po \
- $(E2SCRUB_DIR)
+PROG_SUBDIRS=e2fsck $(DEBUGFS_DIR) misc $(RESIZE_DIR) tests/progs \
+ tests/fuzz po $(E2SCRUB_DIR)
SUBDIRS=util $(LIB_SUBDIRS) $(PROG_SUBDIRS) tests