]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
Build the fuzzers from oss-fuzz
authorTheodore Ts'o <tytso@mit.edu>
Sat, 6 Aug 2022 22:35:30 +0000 (18:35 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 9 Aug 2022 23:45:07 +0000 (19:45 -0400)
commit2869485be9b1b94b93a50589de52ca553e5a116d
treef5562f9f850f5a1788638fcc27c2627c9a758178
parent27504bcf89193d47d7632cde922a65e0c051be01
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>
13 files changed:
MCONFIG.in
Makefile.in
configure
configure.ac
depfix.sed
lib/support/Makefile.in
lib/support/print_fs_flags.c [new file with mode: 0644]
lib/support/print_fs_flags.h [new file with mode: 0644]
tests/fuzz/.gitignore [new file with mode: 0644]
tests/fuzz/Makefile.in [new file with mode: 0644]
tests/fuzz/ext2fs_check_directory_fuzzer.cc [new file with mode: 0644]
tests/fuzz/ext2fs_image_read_write_fuzzer.cc [new file with mode: 0644]
tests/fuzz/ext2fs_read_bitmap_fuzzer.cc [new file with mode: 0644]