[PATCH] D65661: [compiler-rt] Move FDP to include/fuzzer/FuzzedDataProvider.h for easier use.

Max Moroz via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 2 08:13:57 PDT 2019


Dor1s created this revision.
Dor1s added reviewers: kcc, morehouse.
Herald added subscribers: Sanitizers, delcypher, mgorny, dberris, kubamracek.
Herald added projects: LLVM, Sanitizers.

FuzzedDataProvider is a helper class for writing fuzz targets that fuzz
multple inputs simultaneously. The header is supposed to be used for fuzzing
engine agnostic fuzz targets (i.e. the same target can be used with libFuzzer,
AFL, honggfuzz, and other engines). The common thing though is that fuzz targets
are typically compiled with clang, as it provides all sanitizers as well as
different coverage instrumentation modes. Therefore, making this FDP class a
part of the compiler-rt installation package would make it easier to develop
and distribute fuzz targets across different projects, build systems, etc.
Some context also available in https://github.com/google/oss-fuzz/pull/2547.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D65661

Files:
  include/CMakeLists.txt
  include/fuzzer/
  include/fuzzer/FuzzedDataProvider.h
  lib/fuzzer/FuzzerExtFunctions.def
  lib/fuzzer/tests/CMakeLists.txt
  lib/fuzzer/tests/FuzzedDataProviderUnittest.cpp
  lib/fuzzer/utils/
  lib/fuzzer/utils/FuzzedDataProvider.h
  lib/sanitizer_common/scripts/check_lint.sh

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65661.213052.patch
Type: text/x-patch
Size: 25410 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190802/e0e872c9/attachment.bin>


More information about the llvm-commits mailing list